1) Exts (W) - Hitachi H8/300H Series Programming Manual

Table of Contents

Advertisement

2.2.29 (1) EXTS (W)

EXTS (EXTend as Signed)
Operation
(<Bit 7> of Rd) → (<bits 15 to 8> of Rd>
Assembly-Language Format
EXTS.W Rd
Operand Size
Word
Description
This instruction copies the sign of the lower 8 bits in a 16-bit register Rd in the upward direction
(copies Rd bit 7 to bits 15 to 8) to extend the data to signed word data.
Rd
Don't care
8 bits
Sign bit
Available Registers
Rd: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Addressing
Mnemonic
Mode
Register direct
EXTS.W
Notes
8 bits
Operands
1st byte
Rd
1
Condition Code
I
UI H
— — — —
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.
Rd
Sign extension
8 bits
Instruction Format
2nd byte
3rd byte
7
D
rd
98
Sign Extension
U
N
Z
V
0
8 bits
4th byte
C
No. of
States
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents