Z
ILOG
EXTS [A]
Operation:
L
if (A(7)=0) then begin
H
¨
if (LW) then begin
HL(31-16)
end
end
else begin
H
¨
if (LW) then begin
HL(31-16)
end
end
The contents of the accumulator, considered as a signed, two's complement integer, are
sign-extended to 16 bits and the result is stored in the HL register. The contents of the
accumulator are unaffected. This instruction is useful for conversion of short signed
operands into longer signed operands.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Mode
Syntax
EXTS [A]
DC-8297-03
←
A
00h
←
0000h
FFh
←
FFFFh
Instruction Format
11101101 01100101
EXTEND SIGN (BYTE)
Execute
Time
Note
3
L
™
Z380
U
'
M
SER
S
ANUAL
EXTS
5-57
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?
Questions and answers