Nintendo DMG-01 Manual - Page 82
SUB n
View all Nintendo DMG-01 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 82 highlights
3.3.3. 8-Bit ALU Game BoyTM CPU Manual 3. SUB n Description: Subtract n from A. Use with: n = A,B,C,D,E,H,L,(HL),# Flags affected: Z - Set if result is zero. N - Set. H - Set if no borrow from bit 4. C - Set if no borrow. Opcodes: Instruction SUB SUB SUB SUB SUB SUB SUB SUB SUB Parameters A B C D E H L (HL) # Opcode 97 90 91 92 93 94 95 96 D6 Cycles 4 4 4 4 4 4 4 8 8 Page 82 V 1.01
3.3.3. 8-Bit ALU
Game Boy
TM
CPU Manual
3.
SUB n
Description:
Subtract n from A.
Use with:
n = A,B,C,D,E,H,L,(HL),#
Flags affected:
Z - Set if result is zero.
N - Set.
H - Set if no borrow from bit 4.
C - Set if no borrow.
Opcodes:
Instruction
Parameters
Opcode
Cycles
SUB
A
97
4
SUB
B
90
4
SUB
C
91
4
SUB
D
92
4
SUB
E
93
4
SUB
H
94
4
SUB
L
95
4
SUB
(HL)
96
8
SUB
#
D6
8
Page 82
V 1.01