940
(7) System Control Instructions
Addressing Mode/
Instruction Length (Bytes)
Operand Size
#xx
Rn
@ERn
@(d,ERn)
@–
ERn/@ERn+
@aa
@(d,PC)
@@aa
—
Mnemonic
TRAPA
RTE
SLEEP
LDC
TRAPA #xx:2
—
RTE
—
SLEEP
—
LDC #xx:8,CCR
B
2
LDC #xx:8,EXR
B
4
LDC Rs,CCR
B
2
LDC Rs,EXR
B
2
LDC @ERs,CCR
W
4
LDC @ERs,EXR
W
4
LDC @(d:16,ERs),CCR
W
6
LDC @(d:16,ERs),EXR
W
6
LDC @(d:32,ERs),CCR
W
1
0
LDC @(d:32,ERs),EXR
W
1
0
LDC @ERs+,CCR
W
4
LDC @ERs+,EXR
W
4
LDC @aa:16,CCR
W
6
LDC @aa:16,EXR
W
6
LDC @aa:32,CCR
W
8
LDC @aa:32,EXR
W
8
PC
→
@-SP,CCR
→
@-SP, 1
—————
8 [9]
EXR
→
@-SP,<vector>
→
PC
EXR
←
@SP+,CCR
←
@SP+,
5 [9]
PC
←
@SP+
Transition to power-down state
——————
2
#xx:8
→
CCR
1
#xx:8
→
EXR
——————
2
Rs8
→
CCR
1
Rs8
→
EXR
——————
1
@ERs
→
CCR
3
@ERs
→
EXR
——————
3
@(d:16,ERs)
→
CCR
4
@(d:16,ERs)
→
EXR
——————
4
@(d:32,ERs)
→
CCR
6
@(d:32,ERs)
→
EXR
——————
6
@ERs
→
CCR,ERs32+2
→
ERs32
4
@ERs
→
EXR,ERs32+2
→
ERs32
——————
4
@aa:16
→
CCR
4
@aa:16
→
EXR
——————
4
@aa:32
→
CCR
5
@aa:32
→
EXR
——————
5
Operation
Condition Code
IH
N
Z
V
C
Advanced
No. of States
*
1
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔
↔