Nintendo DMG-01 - Game Boy Console Manual page 82

Manual
Table of Contents

Advertisement

3.3.3. 8-Bit ALU
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
Page 82
Parameters
A
B
C
D
E
H
L
(HL)
#
Game Boy
Opcode
Cycles
97
4
90
4
91
4
92
4
93
4
94
4
95
4
96
8
D6
8
TM
CPU Manual
V 1.01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Game boy

Table of Contents