Nintendo GAME BOY Programming Manual page 111

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

RRC
m
Rotates the contents of operand m to the right.
r and (HL) are used for operand m.
Examples: When C = 1h, (HL) = 0h, CY = 0,
RRC C ; C ← 80h, CY ← 1, Z ← 0, H ← 0, N ← 0
RRC (HL) ; (HL) ← 00h, CY ← 0, Z ← 1, H ← 0, N ← 0
RR
Rotates the contents of operand m to the right.
r and (HL) are used for operand m.
Examples: When A = 1h, (HL) = 8Ah, CY = 0,
RR A ; A ← 00h, CY ← 1, Z ← 1, H ← 0, N ← 0
RR (HL) ; (HL) ← 45h, CY ← 0, Z ← 0, H ← 0, N ← 0
m
7
RRC
r
RRC
(HL)
m
m
7
RR
r
RR
(HL)
CY
m
0
CY
0
CYCL
7 6
5 4 3
2
11
001
00
001
4
11
001
00
001
CY
m
0
CY
0
CYCL
7 6
5 4 3
2
11
001
00
011
4
11
011
00
011
111
Chapter 4: CPU Instruction Set
H
N
Z
CYCL
7 6
0
0
*
--
--
2 1 0
011
r
011
110
H
N
Z
CYCL
7 6
0
0
*
--
--
2 1 0
011
r
011
110
5 4 3
2 1 0
--
--
5 4 3
2 1 0
--
--

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents