Z
ILOG
INI
INPUT AND INCREMENT (BYTE)
INI
← (C)
Operation:
(HL)
← B – 1
B
← HL + 1
HL
This instruction is used for block input of strings of data. During the I/O transaction the 32-
bit BC register is placed on the address bus. Note that the B register contains the loop count
for this instruction so that A15-A8 are not useable as part of a fixed port address.
First the byte of data from the selected peripheral is loaded into the memory location
addressed by the HL register. Then the B register, used as a counter, is decremented by
one. The HL register is then incremented by one, thus moving the pointer to the next
destination for the input.
S:
Unaffected
Flags:
Z:
Set if the result of decrementing B is zero; cleared otherwise
H:
Unaffected
V:
Unaffected
N:
Set
C:
Unaffected
Addressing
Mode
Syntax
INI
5-76
Instruction Format
11101101 10100010
Execute
Time
Note
2+i+w
Z380
™
U
'
M
SER
S
ANUAL
DC-8297-03
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?