3. Instructions
318
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
z ASR
z ASRL
Example Programming
ASR(026) shifts the contents of Wd
one bit to the right (from leftmost bit to
rightmost bit). “0” will be placed in the
leftmost bit and the contents of the
rightmost bit will be shifted into the
Carry Flag (CY).
ASRL(571) shifts the contents of Wd
and Wd +1 one bit to the right (from
leftmost bit to rightmost bit). “0” will be
placed in the leftmost bit of Wd +1 and
the contents of the rightmost bit of Wd
will be shifted into the Carry Flag (CY).
When CIO 0.00 is ON, word CIO 100 will
shift one bit to the right. “0” will be placed in
CIO 100.15 and the contents of CIO 100.00
will be shifted to the Carry Flag (CY).
When CIO 0.00 is ON, word CIO 100 and CIO 101
will shift one bit to the right. “0” will be placed into CIO
100.15 and the contents of CIO 100.00 will be shifted
to the Carry Flag (CY).
WdWd+1
0.00
Wd
Wd
0.00
Wd
Wd Wd