Extsb (Sign Extend From Byte Data To Word Data) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.125 EXTSB (Sign Extend from Byte Data to Word Data)

Extends the byte data indicated by "Ri" to word data as a signed binary value.
■ EXTSB (Sign Extend from Byte Data to Word Data)
Assembler format:
EXTSB Ri
exts (Ri) → Ri (byte → word)
Operation:
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
1 cycle
Instruction format:
Example:
EXTSB R1
242
N
Z
V
C
MSB
1
0
0
1
Instruction bit pattern : 1001 0111 1000 0001
R1
0 0 0 0 0 0 A B
Before execution
0
1
1
1
1
0
LSB
0
0
Ri
R1
F F F F F F A B
After execution

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents