2.2.29 (2) EXTS (L)
EXTS (EXTend as Signed)
Sign Extension
Operation
(<Bit 15> of ERd)
→
(<bits 31 to 16> of ERd>)
Assembly-Language Format
EXTS.L
ERd
Operand Size
Longword
Condition Code
I:
Previous value remains unchanged.
H: Previous value remains unchanged.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z:
Set to 1 if the result is zero; otherwise
cleared to 0.
V: Always cleared to 0.
C: Previous value remains unchanged.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
—
Description
This instruction copies the sign of the lower 16 bits (general register Rd) in a 32-bit register ERd
in the upward direction (copies ERd bit 15 to bits 31 to 16) to extend the data to signed longword
data.
Available Registers
ERd: ER0 to ER7
Operand Format and Number of States Required for Execution
Notes
Don’t care
ERd
16 bits
Sign bit
16 bits
Sign extension
ERd
16 bits
16 bits
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
EXTS.L
ERd
1
7
F
0 erd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
99