322
Table A.1
Instruction Set (cont)
Mnemonic
Operation
Addressing Mode/
Instruction Length (Bytes)
Operand Size
#xx: 8/16
Rn
@Rn
@(d:16, Rn)
@–Rn/@Rn+
@aa: 8/16
@(d:8, PC)
@@aa
Implied
No. of States
I
H N Z V C
Condition Code
JSR @@aa:8
RTS
RTE
SLEEP
LDC #xx:8, CCR
LDC Rs, CCR
STC CCR, Rd
ANDC #xx:8, CCR
ORC #xx:8, CCR
XORC #xx:8, CCR
NOP
EEPMOV
SP–2
→
SP
PC
→
@SP
PC
←
@aa:8
PC
←
@SP
SP+2
→
SP
CCR
←
@SP
SP+2
→
SP
PC
←
@SP
SP+2
→
SP
Transit to sleep mode.
#xx:8
→
CCR
Rs8
→
CCR
CCR
→
Rd8
CCR
∧
#xx:8
→
CCR
CCR
∨
#xx:8
→
CCR
CCR
⊕
#xx:8
→
CCR
PC
←
PC+2
if R4L
≠
0 then
Repeat @R5
→
@R6
R5+1
→
R5
R6+1
→
R6
R4L–1
→
R4L
Until R4L=0
else next;
—
—
—
B
B
B
B
B
B
—
—
2
— — — — — — 8
8
10
2
2
2
2
2
2
2
2
(4)
2
↔
↔
2
↔
↔
↔
↔
2 — — — — — —
↔
↔
2
↔
↔
↔
↔
↔
↔
2
↔
↔
↔
↔
2
— — — — — —
↔
↔
2
↔
↔
↔
↔
↔
↔
2
↔
↔
↔
↔
↔
↔
2
↔
↔
↔
↔
2 — — — — — —
— — — — — —
4 — — — — — —
Notes: (1) Set to 1 when there is a carry or borrow from bit 11; otherwise cleared to 0.
(2) If the result is zero, the previous value of the flag is retained; otherwise the flag is
cleared to 0.
(3) Set to 1 if decimal adjustment produces a carry; otherwise retains value prior to
arithmetic operation.
(4) The number of states required for execution is 4n + 9 (n = value of R4L).
(5) Set to 1 if the divisor is negative; otherwise cleared to 0.
(6) Set to 1 if the divisor is zero; otherwise cleared to 0.
A.2
Operation Code Map
Table A.2 is an operation code map. It shows the operation codes contained in the first byte of the
instruction code (bits 15 to 8 of the first instruction word).