
GMS81508B/16B/24B, GMS82512/16/24
MAY. 2001 Ver 2.0
xix
Branch / Jump Operation
NO.
MNENONIC
OP
CODE
y2
y3
x2
x3
BYTE
NO.
2
3
2
3
CYCLE
NO
4/6
5/7
4/6
5/7
OPERATION
FLAG
NVGBHIZC
1
2
3
4
BBC A.bit,rel
BBC dp.bit,rel
BBS A.bit,rel
BBS dp.bit,rel
Branch if bit clear :
if(bit) = 0, then PC
←
PC + rel
Branch if bit clear :
if(bit) = 1, then PC
←
PC + rel
Branch if carry bit clear :
if(C) = 0, then PC
←
PC + rel
Branch if carry bit set : If (C) =1, then PC
←
PC + rel
Branch if equal : if (Z) = 1, then PC
←
PC + rel
Branch if minus : if (N) = 1, then PC
←
PC + rel
Branch if not equal : if (Z) = 0, then PC
←
PC + rel
Branch if not minus : if (N) = 0, then PC
←
PC + rel
Branch always : PC
←
PC + rel
Branch if overflow bit clear :
If (V) = 0, then PC
←
PC + rel
Branch if overflow bit set :
If (V) = 1, then PC
←
PC + rel
Subroutine call
M(SP)
←
(PC
H
), SP
←
SP-1, M(SP)
←
(PC
L
), SP
←
SP-1
if !abs, PC
←
abs ; if [dp], PC
L
←
(dp), PC
H
←
(dp+1)
Compare and branch if not equal ;
- - - - - - - -
- - - - - - - -
5
BCC rel
50
2
2/4
MM - - - - Z -
6
7
8
9
BCS rel
BEQ rel
BMI rel
BNE rel
BPL rel
BRA rel
BVC rel
D0
F0
90
70
10
2F
30
2
2
2
2
2
2
2
2/4
2/4
2/4
2/4
2/4
4
2/4
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
- - - - - - - -
10
11
12
- - - - - - - -
13
BVS rel
B0
2
2/4
- - - - - - - -
14
15
CALL !abs
CALL [dp]
3B
5F
3
2
8
8
- - - - - - - -
16
CBNE dp,rel
CBNE dp + X,
rel
DBNE dp,rel
DBNE Y,rel
JMP !abs
JMP [!abs]
JMP [dp]
PCALL
FD
3
5/7
- - - - - - - -
17
8D
3
6/8
If A
≠
(M), then PC
←
PC + rel.
18
19
20
21
22
23
AC
7B
1B
1F
3F
4F
3
2
3
3
2
2
5/7
4/6
3
5
4
6
Decrement and branch if not equal :
if (M)
≠
0, then PC
←
PC + rel.
Unconditional jump
PC
←
jump address
- - - - - - - -
- - - - - - - -
U-page call : M(SP)
←
(PC
H
), SP
←
SP -1,
M(SP)
←
(PC
L
), SP
←
SP -1,
PC
L
←
(upage), PC
H
←
"OFF
H
"
Table call :
M(SP)
←
(PC
H
), SP
←
SP -1,
M(SP)
←
(PC
L
), SP
←
SP -1
PC
L
←
(Table vector L), PC
H
←
(Table vector H)
- - - - - - - -
24
TCALL n
nA
1
8
- - - - - - - -