Nintendo GAME BOY Programming Manual page 117

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

JR
Jumps -127 to +129 steps from the current address.
JR
cc,
If condition cc and the flag status match, jumps -127 to +129 steps from the current address. If cc and
the flag status do not match, the instruction following the current JP instruction is executed.
JP
(HL)
Loads the contents of register pair HL in program counter PC.
The next instruction is fetched from the location specified by the new value of PC.
Example: When HL = 8000h,
JP (HL) ; Jumps to 8000h.
PC ← PC + e
e
If cc true, PC ← PC + e
e
PC ← HL
CY
H
N
--
--
--
CY
H
N
--
--
--
CY
H
N
--
--
--
117
Chapter 4: CPU Instruction Set
Z
CYCL
7 6
5 4 3
--
3
00
011
e - 2
e = -127 to +129
Z
CYCL
7 6
5 4 3
--
3/2
00
1cc
e - 2
e = -127 to +129
Z
CYCL
7 6
5 4 3
--
1
11
101
2 1 0
000
2 1 0
000
2 1 0
001

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents