279
µ
PD17062
22.3 LIST OF INSTRUCTION SETS
Instruction
set
Add
Subtract
Logical
operation
Test
Compare
Rotation
Transfer
Mne-
monic
ADD
ADDC
INC
SUB
SUBC
OR
AND
XOR
SKT
SKF
SKE
SKNE
SKGE
SKLT
RORC
LD
ST
MOV
MOVT
Operand
r, m
m, #n4
r, m
m, #n4
AR
IX
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
r, m
m, #n4
m, #n
m, #n
m, #n4
m, #n4
m, #n4
m, #n4
r
r, m
m, r
@r, m
m, @r
m, #n4
DBF, @AR
Instruction code
Op code
00000
10000
00010
10010
00111
00111
00001
10001
00011
10011
00110
10110
00100
10100
00101
10101
11110
11111
01001
01011
11001
11011
00111
01000
11000
01010
11010
11101
00111
Operand
mR
mR
mR
mR
000
000
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
mR
000
mR
mR
mR
mR
mR
000
mC
mC
mC
mC
1001
1000
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
mC
0111
mC
mC
mC
mC
mC
0001
r
n4
r
n4
0000
0000
r
n4
r
n4
r
n4
r
n4
r
n4
n
n
n4
n4
n4
n4
r
r
r
r
r
n4
0000
Operation
(r) ← (r) + (m)
(m) ← (m) + n4
(r) ← (r) + (m) + CY
(m) ← (m) + n4 + CY
AR ← AR + 1
IX ← IX + 1
(r) ← (r) – (m)
(m) ← (m) – n4
(r) ← (r) – (m) – CY
(m) ← (m) – n4 – CY
(r) ← (r) ∨ (m)
(m) ← (m) ∨ n4
(r) ← (r) ∧ (m)
(m) ← (m) ∧ n4
(r) ← (r) ∨ (m)
(m) ← (m) ∨ n4
CMP ← 0, if (m) ∧ n = n, then skip
CMP ← 0, if (m) ∧ n = 0, then skip
(m) – n4, skip if zero
(m) – n4, skip if not zero
(m) – n4, skip if not borrow
(m) – n4, skip if borrow
→ CY → (r)b3 → (r)b2 → (r)b1 → (r)b0
(r) ← (m)
(m) ← (r)
if MPE = 1: (MP, (r)) ← (m)
if MPE = 0: (BANK, mR, (r)) ← (m)
if MPE = 1: (m) ← (MP, (r))
if MPE = 0: (m) ← (BANK, mR, (r))
(m) ← n4
SP ← SP – 1, ASR ← PC, PC ← AR,
DBF ← (PC), PC ← ASR, SP ← SP + 1