Hyundai GMS800 Instruction Manual page 55

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

ROL
( Rotate left through carry )
Function
:
C
Description : Rotate the accumulator or the contents of memory to the left side by 1bit. Move the carry flag
to bit0, and bit7 enter into the carry flag.

Flag
:
Mnemonic
ROL
ROL
ROL
ROL
Example
:
72
73 F054 A0
74 F055 2931
75 F057 2930
ROR
( Rotate right through carry )
Function
:

Description : Rotate the accumulator or the contents of memory to the right side by 1bit. Move the carry
flag to bit7, and bit0 enter into the carry flag.

Flag
:
Mnemonic
ROR A
ROR dp
ROR dp + X
ROR !abs
Example
:
282 E13A C908
283 E13C 68
284 E13D BE
285 E13E F004
286 E140 50FA
287 E142 E929
7
6
5
4
         
OP Code
A
28
dp
29
dp + X
39
!abs
38
SETC
ROL
ROL
7
6
5
4
3
2
        
OP Code
68
69
79
78
LDY
LP:
ROR
DEC
BEQ
BCC
STY
3
2
1
0
Bytes
Cycles
1
2
2
4
2
5
3
5
; ROTATE 16 BIT DATA SHIFT LEFT
31H
; SHIFT LEFT 1 BIT
30H
1
0
C
Bytes
Cycles
1
2
2
4
2
5
3
5
8
A
; SHIFT ROTATE RIGHT WITH CARRY
Y
$+6
; TEST 8 TIMES ?
LP
POINTER
Instruction Set
51

Advertisement

Table of Contents
loading

Table of Contents