Z
ILOG
LDIW
Operation:
if (LW) then begin
(DE)
(DE+1)
(DE+2)
(DE+3)
DE
HL
BC(15-0)
end
else begin
(DE)
(DE+1)
DE
HL
BC(15-0)
end
This instruction is used for block transfers of words of data. The word of data at the location
addressed by the HL register is loaded into the location addressed by the DE register. Both
the DE and HL registers are then incremented by two or four, thus moving the pointers to
the succeeding words in the array. The BC register, used as a byte counter, is then
decremented by two or four.
Both DE and HL should be even, to allow word transfers on the bus. BC must be even,
transferring an even number of bytes, or the operation is undefined.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Cleared
V:
Set if the result of decrementing BC is not equal to zero; cleared otherwise
N:
Cleared
C:
Unaffected
Addressing
Mode
Syntax
LDIW
DC-8297-03
←
(HL)
←
(HL+1)
←
(HL+2)
←
(HL+3)
←
DE + 4
←
HL + 4
←
BC(15-0) – 4
←
(HL)
←
(HL+1)
←
DE + 2
←
HL + 2
←
BC(15-0) – 2
Instruction Format
11101101 11100000
LOAD AND INCREMENT (WORD)
Execute
Time
Note
3+r+w
L
™
Z380
U
'
M
SER
S
ANUAL
LDIW
5-101
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?
Questions and answers