Download Print this page

ZiLOG Z80380 User Manual page 91

Advertisement

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

Advertisement

loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel