EasyManua.ls Logo

Renesas SuperH SH-4A - MOVT (Move T Bit): Data Transfer Instruction

Renesas SuperH SH-4A
472 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.50, 10/04, page 280 of 448
10.1.38 MOVT (Move T Bit): Data Transfer Instruction
Format Operation Instruction Code Cycle T Bit
MOVT Rn T Rn 0000nnnn00101001 1 —
Description: This instruction stores the T bit in general register Rn. When T = 1, Rn = 1; when T
= 0, Rn = 0.
Notes: None
Operation:
MOVT(long n) /* MOVT Rn */
{
R[n] = (0x00000001 & SR);
PC += 2;
}
Example:
XOR R2,R2 ;R2 = 0
CMP/PZ R2 ;T = 1
MOVT R0 ;R0 = 1
CLRT ;T = 0
MOVT R1 ;R1 = 0

Table of Contents

Related product manuals