Addsp (Add Stack Pointer And Immediate 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.124 ADDSP (Add Stack Pointer and Immediate Data)

Add 4 times the immediate data as a signed extended value, to the value in "R15".
■ ADDSP (Add Stack Pointer and Immediate Data)
Assembler format:
ADDSP #s10
Operation:
R15 + exts (s8 × 4) → R15
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
1 cycle
Instruction format:
Example:
ADDSP # – 4
238
N
Z
V
C
MSB
1
0
1
0
Instruction bit pattern :
R15
8 0 0 0 0 0 0 0
Before execution
0
0
1
1
1010 0011 1111 1111
LSB
s8
R15
7 F F F F F F C
After execution

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents