69
µ
PD17145(A1), 17147(A1), 17149(A1)
In-
struc-
tion
m, @r 11010 mRmCr
@r, m 01010 mRmCr
RORC r 00111 000 0111 r
AdditionSubtractionLogical operation
Judgment
Comparison
Rotation
Transfer
ADD
ADDC
INC
SUB
SUBC
OR
AND
XOR
MOVT DVF, @AR 00111 000 0001 0000
20.3 Instruction Set
Instruction code
Mnemonic Operand Operation op code Operand
r, m (r) ← (r) + (m) 00000 mRmCr
m, #n4 (m) ← (m) + n4 10000 mRmCn4
r, m (r) ← (r) + (m) + CY 00010 mRmCr
m, #n4 (m) ← (m) + n4 + CY 10010 mRmCn4
AR AR ← AR + 1 00111 000 1001 0000
IX IX ← IX + 1 00111 000 1000 0000
r, m (r) ← (r) – (m) 00001 mRmCr
m, #n4 (m) ← (m) – n4 10001 mRmCn4
r, m (r) ← (r) – (m) – CY 00011 mRmCr
m, #n4 (m) ← (m) – n4 – CY 10011 mRmCn4
r, m (r) ← (r) ∨ (m) 00110 mRmCr
m, #n4 (m) ← (m) ∨ n4 10110 mRmCn4
r, m (r) ← (r) ∧ (m) 00100 mRmCr
m, #n4 (m) ← (m) ∧ n4 10100 mRmCn4
r, m (r) ← (r) ∨ (m) 00101 mRmCr
m, #n4 (m) ← (m) ∨ n4 10101 mRmCn4
SKT m, #n CMP ← 0, if (m) ∧ n = n, then skip 11110 mRmCn
SKF m, #n CMP ← 0, if (m) ∧ n = 0, then skip 11111 mRmCn
SKE m, #n4 (m) – n4, skip if zero 01001 mRmCn4
SKNE m, #n4 (m) – n4, skip if not zero 01011 mRmCn4
SKGE m, #n4 (m) – n4, skip if not borrow 11001 mRmCn4
SKLT m, #n4 (m) – n4, skip if borrow 11011 mRmCn4
→ CY → (r) b3 → (r) b2 → (r) b1 → (r) b0
LD r, m (r) ← (m) 01000 mRmCr
ST m, r (m) ← (r) 11000 mRmCr
if MPE = 1: (MP, (r)) ← (m)
if MPE = 0: (BANK, mR, (r)) ← (m)
MOV if MPE = 1: (m) ← (MP, (r))
if MPE = 0: (m) ← (BANK, mR, (r))
m, #n4 (m) ← n4 11101 mRmCn4
SP ← SP –1, ASR ← PC, PC ← AR,
DBF ← (PC), PC ← ASR, SP ← SP +1
PUSH AR SP ← SP –1, ASR ← AR 00111 000 1101 0000
POP AR AR ← ASR, SP ← SP +1 00111 000 1100 0000
PEEK WR, rf WR ← (rf) 00111 rfR0011 rfC
POKE rf, WR (rf) ← WR 00111 rfR0010 rfC
GET DBF, p DBF ← (p) 00111 pH1011 pL
PUT p, DBF (p) ← DBF 00111 pH1010 pL