ind
Input and decrement
Reads a byte from the port addressed by BC into (HL), then decrements HL and B.
2 bytes16 cycles
SZHP/VNC ?●????
- ● depends on the result
- ? undefined (do not rely on it)
Forms
indReads a byte from the port whose 16-bit address is in BC and stores it into the memory location pointed to by HL. Then decrements HL and B. Sets the zero flag if B becomes zero, and resets it otherwise.
.org 0x8000
ld hl, 0x9000
ld b, 2
ld c, 0xF0
ind
halt