Download Print this page

ZiLOG Z80380 User Manual page 107

Advertisement

Z
ILOG
INDW
Operation:
(HL)
BC(15-0)
HL
This instruction is used for block input of strings of data. During the I/O transaction the 32-
bit DE register is placed on the address bus.
First the word of data from the selected peripheral is loaded into the memory location
addressed by the HL register. Then the BC register, used as a counter, is decremented by
one. The HL register is then decremented by two, thus moving the pointer to the next
destination for the input.
Flags:
S:
Unaffected
Z:
Set if the result of decrementing BC is zero; cleared otherwise
H:
Unaffected
V:
Unaffected
N:
Set
C:
Unaffected
Addressing
Mode
Syntax
INDW
DC-8297-03
← (DE)
← BC(15-0) – 1
← HL – 2
Instruction Format
11101101 11101010
INPUT AND DECREMENT (WORD)
Execute
Time
2+i+w
Z380
U
'
M
SER
S
ANUAL
INDW
Note
5-73

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80380 and is the answer not in the manual?