Block Transfer and Compare
Compares (via subtraction) the value in a
with the 8-bit value pointed to by hl
. Then, both hl
and bc
are decremented by one.
Compares (via subtraction) the value in a
with the 8-bit value pointed to by hl
. Then, both hl
and bc
are decremented by one. This operation is then repeated until either a
is equal to the 8-bit value pointed to by hl
, or the P/V flag is reset (bc is decremented to 0).
Compares (via subtraction) the value in a
with the 8-bit value pointed to by hl
. Then, hl
is incremented and bc
is decremented by one.
Compares (via subtraction) the value in a
with the 8-bit value pointed to by hl
. Then, hl
is incremented and bc
is decremented by one. This operation is then repeated until either a
is equal to the 8-bit value pointed to by hl
, or the P/V flag is reset (bc is decremented to 0).
Transfers the byte of memory pointed to by hl
to the memory location pointed to by de
. Then hl
, de
, and bc
are decremented.
- Opcode:
11101101
10101000
- Bytes: 2
- Flags:
- H: Reset
- P/V: Reset if
bc
becomes zero - N: Reset
- Cycles: 2F + 1R + 1W + 1
Transfers the byte of memory pointed to by hl
to the memory location pointed to by de
. Then hl
, de
, and bc
are decremented. If bc
is not zero, this operation is repeated. Interrupts can trigger between repetitions.
- Opcode:
11101101
10111000
- Bytes: 2
- Flags:
- H: Reset
- P/V: Reset
- N: Reset
- Cycles: 2F + (1R + 1W + 1) * bc
Transfers the byte of memory pointed to by hl
to the memory location pointed to by de
. Then hl
and de
are incremented and bc
is decremented.
- Opcode:
11101101
10100000
- Bytes: 2
- Flags:
- H: Reset
- P/V: Reset if
bc
becomes zero - N: Reset
- Cycles: 2F+1R+1W+1
Transfers the byte of memory pointed to by hl
to the memory location pointed to by de
. Then hl
and de
are incremented and bc
is decremented. If bc
is not zero, this operation is repeated. Interrupts can trigger between repetitions.
- Opcode:
11101101
10110000
- Bytes: 2
- Flags:
- H: Reset
- P/V: Reset
- N: Reset
- Cycles: 2F + (1R + 1W + 1) * bc