284
APPENDIX
■ Branch instructions
Table B.5-3 Branch instructions
No. MNEMONIC # Operation TL TH AH
N
Z
V
C OP CODE
1 BZ/BEQ rel 3 2 if Z=1 then PC<--PC+rel
- - - ----
FD
2 BNZ/BNE rel 3
2
if Z=0 then PC<--PC+rel
- - - ----
FC
3 BC/BLO rel 3 2 if C=1 then PC<--PC+rel
- - - ----
F9
4 BNC/BHS rel 3 2 if C=0 then PC<--PC+rel
- - - ----
F8
5 BN rel 3 2 if N=1 then PC<--PC+rel
- - - ----
FB
6 BP rel 3 2 if N=0 then PC<--PC+rel
- - - ----
FA
7BLT rel 32
if V N=1 then PC<--PC+rel
- - - ----
FF
8BGE rel 32
if 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 2 1 (PC)<--(A)
- - - ----
E0
12 JMP ext 3 3 (PC)<--ext
- - - ----
21
13 CALLV #vct 6 1 vector call
- - - ----
E8 to EF
14 CALL ext 6 3 subroutine call
- - - ----
31
15 XCHW A, PC 3 1 (PC)<--(A), (A)<--(PC)+1
--
dH
----
F4
16 RET 4 1 return from subroutine
- - - ----
20
17 RETI 6 1 return from interrupt
---
restore 30