MVTC

Transfer to a control register

MVTC

MoVe To Control register


[Syntax]

MVTC src, dest

 

[Operation]

dest = src;

 

[Function]

-

This instruction transfers src to dest.

-

EXTB is also specifiable as dest if you have specified the assembler option -isa with selection of the instruction set of the RXv2 or a later version. [V2.01.00 or later]

-

In user mode, writing to the ISP, INTB, EXTB, BPC, BPSW, and FINTV, and the IPL[3:0], PM, U, and I bits in the PSW is ignored. In supervisor mode, writing to the PM bit in the PSW is ignored.

 

[Instruction Format]

Syntax

Processng Size

Operand

Code Size

(Byte)

src

dest*

MVTC src, dest

L

#SIMM:8

Rx

4

L

#SIMM:16

Rx

5

L

#SIMM:24

Rx

6

L

#IMM:32

Rx

7

L

Rs

Rx

3

Note

* Selectable dest: Registers ISP, USP, INTB, EXTB, PSW, BPC, BPSW, FINTV, and FPSW
Note that the PC cannot be specified as dest.

 

[Flag Change]

Flag

C

Z

S

O

Change

*

*

*

*

Note

* The flag changes only when dest is the PSW.

 

[Description Example]

MVTC #0FFFFF000h, INTB

MVTC R1, USP