Nintendo GAME BOY Programming Manual page 99

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

LD
(BC),
Stores the contents of register A in the memory specified by register pair BC.
Example: When BC = 205Fh and A = 3Fh,
LD (BC) , A ; (205Fh) ← 3Fh
LD
(DE),
Stores the contents of register A in the memory specified by register pair DE.
Example: When DE = 205Ch and A = 00h,
LD (DE) , A ; (205Ch) ← 00h
LD
(HLI),
Stores the contents of register A in the memory specified by register pair HL and simultaneously
increments the contents of HL.
Example: When HL = FFFFh and A = 56h,
LD (HLI), A ; (0xFFFF) ← 56h, HL = 0000h
LD
(HLD),
Stores the contents of register A in the memory specified by register pair HL and simultaneously
decrements the contents of HL.
Example: HL = 4000h and A = 5h,
LD (HLD), A ; (4000h) ← 5h, HL = 3FFFh
(BC) ← A
A
(DE) ← A
A
(HL) ← A
A
HL ← HL+1
(HL) ← A
A
HL ← HL-1
CY
H
N
--
--
--
CY
H
N
--
--
--
CY
H
N
--
--
--
CY
H
N
--
--
--
99
Chapter 4: CPU Instruction Set
Z
CYCL
7 6
5 4 3
--
2
00
000
Z
CYCL
7 6
5 4 3
--
2
00
010
Z
CYCL
7 6
5 4 3
--
2
00
100
Z
CYCL
7 6
5 4 3
--
2
00
110
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