beautypg.com

FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 206

background image

182

CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS

7.86

MOV (Move Word Data in Source Register to Program
Status Register)

Moves the word data in general-purpose register Ri to the program status (PS).
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 "Ri", 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".

MOV (Move Word Data in Source Register to Program Status Register)

Assembler format:

MOV Ri, PS

Operation:

Ri

PS

Flag change:

N, Z, V, and C: Data is transferred from "Ri".

Execution cycles:

c cycle(s)

The number of execution cycles is normally "1". However, if the instruction immediately after

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

LSB

0

0

0

0

0

1

1

1

0

0

0

1

Ri