/opcodes/set

Description

Bit b in register r (any of registers B, C, D, E, H, L, or A) is set. In the assembled object code, operands b and r are specified as follows: Bit b Register r 0 000 B 000 1 001 C 001 2 010 D 010 3 011 E 011 4 100 H 100 5 101 L 101 6 110 A 111 7 111

Example

Upon the execution of a SET 4, A instruction, bit 4 in Register A is set. Bit 0 is the least- significant bit.

Opcodes