Nintendo DMG-01 - Game Boy Console Manual page 87

Manual
Table of Contents

Advertisement

TM
Game Boy
CPU Manual
8. CP n
Description:
Compare A with n. This is basically an A - n
subtraction instruction but the results are thrown
away.
Use with:
n = A,B,C,D,E,H,L,(HL),#
Flags affected:
Z - Set if result is zero. (Set if A = n.)
N - Set.
H - Set if no borrow from bit 4.
C - Set for no borrow. (Set if A < n.)
Opcodes:
Instruction
CP
CP
CP
CP
CP
CP
CP
CP
CP
by DP
Parameters
A
B
C
D
E
H
L
(HL)
#
Opcode
Cycles
BF
4
B8
4
B9
4
BA
4
BB
4
BC
4
BD
4
BE
8
FE
8
3.3.3. 8-Bit ALU
Page 87

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Game boy

Table of Contents