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