Hitachi H8/3664 Hardware Manual page 41

Table of Contents

Advertisement

Instruction
Size*
NEG
B/W/L
EXTS
W/L
EXTU
W/L
Note: * Size refers to the operand size.
B: Byte
W: Word
L: Longword
Function
0 – Rd → Rd
Takes the two's complement (arithmetic complement) of data in a
general register.
Rd (sign extension) → Rd
Extends byte data in the lower 8 bits of a 16-bit register to word data,
or extends word data in the lower 16 bits of a 32-bit register to
longword data, by extending the sign bit.
Rd (zero extension) → Rd
Extends byte data in the lower 8 bits of a 16-bit register to word data,
or extends word data in the lower 16 bits of a 32-bit register to
longword data, by padding with zeros.
25

Advertisement

Table of Contents
loading

Table of Contents