Instruction Set
27
BRK
( Software interrupt )
Function
: B
“1”
M( SP )
PC
H
, SP
SP - 1 ,
M( SP )
PC
L
, SP
SP - 1 ,
M( SP )
PSW, SP
SP - 1 ,
PC
L
M( FFDEh ) , PC
H
M( FFDFh )
Description : Generates software interrupt.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BRK
0F
1
8
Example
:
165 E0CC E0
EI
166 E0CD 0F
BRK
; PUSH THE CONTENTS OF PC AND PSW TO STACK
167 E0CE 88
INT2:
INC
A
168
;
169
;
170 E0CF 3BC4E0
SOFTINT: CALL
ADSEL
171 E0D2 7F
RETI
BVC
( Branch if overflow flag clear )
Function
: if (V) = 0, then ( PC )
( PC ) + rel
Description : Branches if overflow flag(V) is “0”.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BVC rel
30
2
2/4
Example
:
175 E0D3 D51AE0
LDA
!DATA+Y
176 E0D6 0510
ADC
10H
177 E0D8 30D4
BVC
KIDL