Ld (Load Word Data In Memory To Program Status Register) - Fujitsu FR Family Instruction Manual

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

Advertisement

7.62

LD (Load Word Data in Memory to Program Status Register)

Load the word data at memory address "R15" to the program status (PS), and add 4 to
the value of "R15".
At the time this instruction is executed, if the value of the interrupt level mask register
(ILM) is in the range 16 to 31, only new "ILM" settings between 16 and 31 can be
entered. If data in the range 0 to 15 is loaded from memory, the value 16 will be added to
that data before transfer to the "ILM". If the original "ILM" value is in the range 0 to 15,
then any value from 0 to 31 can be transferred to the "ILM".
■ LD (Load Word Data in Memory to Program Status Register)
Assembler format:
LD @ R15 +, PS
Operation:
(R15) → PS
R15 + 4 → R15
Flag change:
N, Z, V, and C: Data is transferred from "Ri".
Execution cycles:
1 + a + c cycles
The value of "c" is normally 1 cycle. However, if the next instruction involves read or write access
to memory address "R15", the system stack pointer (SSP) or the user stack pointer (USP), then an
interlock is applied and the value becomes 2 cycles.
Instruction format:
N
Z
V
C
C
C
C
C
MSB
0
0
0
0
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
0
1
1
1
1
0
LSB
0
1
0
0
0
0
157

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents