Nintendo GAME BOY Programming Manual page 282

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

Game Boy Programming Manual
SYMBOLIC
MNEMONIC
OPERATION
BIT b,r
Z←r
b
BIT
Z←HL)
b,(HL)
←1
SET
r
b
b,r
←1
SET
(HL)
b
b,(HL)
←0
RES
r
b
b,r
←0
RES
(HL)
b
b,(HL)
JP nn
PC←nn
JP cc,nn
If cc true,
PC←nn
JR e
PC←PC+e
JR
If cc true,
cc,e
PC←PC+e
JP
PC←HL
(HL)
FLAGS
CY
H
N
--
1
0
--
1
0
b
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
--
-
OP-CODE
CYCL
76 543 210
Z
r
2
11 001 011
b
01
b
(HL)
3
11 001 011
b
01
b
--
2
11 001 011
11
b
--
4
11 001 011
11
b
--
2
11 001 011
10
b
--
4
11 001 011
10
b
--
4
11 000 011
L-ADRS
H-ADRS
--
4/3
11 0cc 010
L-ADRS
H-ADRS
--
3
00 011 000
e-2
--
3/2
00 1cc 000
e-2
--
1
11 101 001
282
COMMENT
r
b
Bit
0
000
110
1
001
2
010
r
3
011
4
100
110
5
101
6
110
r
7
111
110
* No. of cycles is 3 when
n
no cc agreement
n
n
CC
Condition
n
00
01
10
11
e=-127~+129
r
Register
A
111
B
000
C
001
D
010
E
011
H
100
L
101
Flag
NZ
Z=0
Z
Z=1
NC
CY=0
C
CY=1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents