Nintendo GAME BOY Programming Manual page 98

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

Game Boy Programming Manual
LD
A,
Loads into register A the contents of the internal RAM or register specified by 16-bit immediate operand
nn.
Example: LD A, (FF44h) ; A ← (LY)
LD A, (8000h) ; A ← (8000h)
LD
(nn),
Loads the contents of register A to the internal RAM or register specified by 16-bit immediate operand nn.
Example: LD (FF44h), A ; (LY) ← A
LD (8000h), A ; (8000h) ← A
LD
A,
Loads in register A the contents of memory specified by the contents of register pair HL and
simultaneously increments the contents of HL.
Example: When HL = 1FFh and (1FFh) = 56h,
LD A, (HLI) ; A ← 56h, HL ← 200h
LD
A,
Loads in register A the contents of memory specified by the contents of register pair HL and
simultaneously decrements the contents of HL.
Example: When HL = 8A5Ch and (8A5Ch) = 3Ch,
LD A, (HLD) ; A ← 3Ch, HL ← 8A5Bh
A ← (nn)
(nn)
(nn) ← A
A
A ← (HL)
(HLI)
HL ← HL+1
A ← (HL)
(HLD)
HL ← HL-1
CY
H
N
--
--
--
CY
H
N
--
--
--
CY
H
N
--
--
--
CY
H
N
--
--
--
98
Z
CYCL
7 6
5 4 3
--
4
11
111
n
n
Z
CYCL
7 6
5 4 3
--
4
11
101
n
n
Z
CYCL
7 6
5 4 3
--
2
00
101
Z
CYCL
7 6
5 4 3
--
2
00
111
2 1 0
010
2 1 0
010
2 1 0
010
2 1 0
010

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents