Mitsubishi M16C/60 Series Software Manual page 85

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

ROL
Op e r a t io n :
F u n c t io n :
This instruction shifts either A or M one bit left through C. C is
stored in bit 0 and bit 7 is stored in C.
St a t u s fla g :
N :
V:
T:
B:
I:
D:
Z:
C:
Addressing mode
∆ROL∆A
Accumulator
∆ROL∆$zz
Zero page
∆ROL∆$zz,X
Zero page X
∆ROL∆$hhll
Absolute
∆ROL∆$hhll,X
Absolute X
R
OTATE
b7
N is 1 when bit 6 is 1 before the operation; otherwise N is
0.
No change
No change
No change
No change
No change
Z is 1 when the operation result is 0; otherwise Z is 0.
C is 1 when bit 7 is 1 before the operation; otherwise C is
0.
Statement
O
L
NE BIT
EFT
Machine codes
2A
16
26
, zz
16
16
36
, zz
16
16
2E
, ll
, hh
16
16
16
3E
, ll
, hh
16
16
16
ROL
b0
C
Byte number
Cycle number
1
2
2
5
2
6
3
6
3
7
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/20 series

Table of Contents