231
APPENDIX A Instruction List
Table A.2-3 Operation List (for Branch Instructions)
No MNEMONIC ~ # OPERATION TL TH AH NZVC OP CODE
1
BZ/BEQ rel (divergence)
(no divergence)
4
2
2 if Z=1 then PC ← PC+rel – – – – – – – FD
2
BNZ/BNE rel (divergence)
(no divergence)
4
2
2 if Z=0 then PC ← PC+rel – – – – – – – FC
3
BC/BLO rel (divergence)
(no divergence)
4
2
2 if C=1 then PC ← PC+rel – – – – – – – F9
4
BNC/BHS rel (divergence)
(no divergence)
4
2
2 if C=0 then PC ← PC+rel – – – – – – – F8
5
BN rel (divergence)
(no divergence)
4
2
2if N=1 then PC ← PC+rel – – – – – – – FB
6
BP rel (divergence)
(no divergence)
4
2
2if N=0 then PC ← PC+rel – – – – – – – FA
7
BLT rel (divergence)
(no divergence)
4
2
2if V ∀ N=1 then
PC ← PC+rel
– – – – – – – FF
8
BGE rel (divergence)
(no divergence)
4
2
2if V ∀ N=0 then
PC ← PC+rel
– – – – – – – FE
9
BBC dir:b, rel
5 3 if (dir:b)=0 then
PC ← PC+rel
––– – + – –B0 to B7
10
BBS dir:b, rel
5 3 if (dir:b)=1 then
PC ← PC+rel
––– – + – –B8 to BF
11
JMP @A
31(PC) ← (A) – – – – – – – E0
12
JMP ext
43(PC) ← ext – – – – – – – 21
13
CALLV #vct
7 1 vector call – – – – – – – E8 to EF
14
CALL ext
6 3 subroutine call – – – – – – – 31
15
XCHW A, PC
31(PC) ← (A),
(A) ← (PC)+1
– – dH – – – – F4
16
RET
6 1 return from subroutine – – – – – – – 20
17
RETI
8 1 return from interrupt – – – restore 30