2.5.7
System Control Instructions
Table 2.10 describes the system control instructions. Figure 2.9 shows their object code formats.
Table 2.10 System Control Instructions
Instruction
RTE
Size*
—
Function
Returns from an exception-handling routine.
Causes a transition to the power-down state.
Rs → CCR, #imm → CCR
SLEEP
LDC
—
B
Moves immediate data or general register contents to the condition
code register.
STC
B
B
B
B
CCR → Rd
Copies the condition code register to a specified general register.
CCR #imm → CCR
ANDC
ORC
Logically ANDs the condition code register with immediate data.
CCR #imm → CCR
Logically ORs the condition code register with immediate data.
CCR #imm → CCR
XORC
Logically exclusive-ORs the condition code register with immediate
data.
NOP
—
PC + 2 → PC
Only increments the program counter.
Note: * Size: Operand size
B: Byte
15
15
8
8
8
7
7
7
0
0
0
op
RTE, SLEEP, NOP
LDC, STC (Rn)
op
rn
15
ANDC, ORC,
XORC, LDC (#xx:8)
op
IMM
Legend:
op: Operation field
rn: Register field
IMM: Immediate data
Figure 2.9 System Control Instruction Codes
46