Instruction Set
25
BMI
( Branch if minus )
Function
: if (N) = 1, then ( PC )
( PC ) + rel
Description : Branches if negative flag(N) is “1”
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BMI rel
90
2
2/4
Example
:
107
WORK0
EQU
5
108 E07C C570
LDA
70H
109 E07E 2404
SBC
#4
110 E080 9002
BMI
MINUS
111 E082 E505
STA
WORK0
112
;
113 E084 CE
MINUS:
XCN
BNE
( Branch if not equal )
Function
: if (Z) = 0, then ( PC )
( PC ) + rel
Description : Branches if zero flag(Z) is “0”
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BNE rel
70
2
2/4
Example
:
712 D0A3 C556
LDA
RTXHIGH
713 D0A5 440F
CMP
#0FH
714 D0A7 7006
BNE
SUB_ON
;IF RTXHIGH /= 0FH, THEN JUMP TO SUB_ON