Fujitsu FR81 Computer Hardware User Manual


 
FR81 Family
294 FUJITSU MICROELECTRONICS LIMITED CM71-00105-1E
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.105
7.105 LD (Load Word Data in Memory to Program Status
Register)
Loads the word data at memory address R15 to the program status (PS), and adds 4 to
the value of R15.
Assembler Format
LD @R15+, PS
Operation
(R15) PS
R15 + 4 R15
The contents of system status register (SSR) cannot be changed by this instruction regardless of the
selected operation mode. If this instruction is executed in user mode, only the D1, D0, N, Z, V and C flags
can be changed. The other flag values are not updated. Any bit other than SSR can be changed in privilege
mode.
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 being transferred 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.
Flag Change
N, Z, V, C: Data of (R15) is transferred.
Classification
Memory Load instruction, FR81 updating
Execution Cycles
1+a cycles
NZVC
CCCC