Bit Opcodes - Nintendo DMG-01 - Game Boy Console Manual

Manual
Table of Contents

Advertisement

3.3.7. Bit Opcodes

3.3.7. Bit Opcodes
1. BIT b,r
Description:
Test bit b in register r.
Use with:
b = 0 - 7, r = A,B,C,D,E,H,L,(HL)
Flags affected:
Z - Set if bit b of register r is 0.
N - Reset.
H - Set.
C - Not affected.
Opcodes:
Instruction
BIT
BIT
BIT
BIT
BIT
BIT
BIT
BIT
Page 108
Parameters
b,A
b,B
b,C
b,D
b,E
b,H
b,L
b,(HL)
Game Boy
Opcode
Cycles
CB 47
8
CB 40
8
CB 41
8
CB 42
8
CB 43
8
CB 44
8
CB 45
8
CB 46
16
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