Hyundai GMS800 Instruction Manual page 26

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

HYUNDAI MicroElectonics
BBC
( Branch if bit clear )
Function
: if (bit) = 0,
Description : Branches if the specified bit of the accumulator or of the memory is "0".

Flag
:
Mnemonic
BBC A.bit,rel
BBC dp.bit,rel
* y means that the bit4 of op code is "1".
Example
:
72
73
74
75 F04E 332303
76 F051 E40B34
77
78
79 F054 6F
BBS
( Branch if bit set )
Function
: if (bit) = 1,
Description : Branches if the specified bit of the accumulator or memory is "1".

Flag
:
Mnemonic
BBS A.bit,rel
BBS dp.bit,rel
* x means that the bit4 of op code is "0".
Example
:
72
73
74
75 F04C 232303
76 F04F E40B34
77 F052 6F
22

then ( PC )
( PC ) + rel
OP Code
y2
y3
F_NEW
EQU
1,23H
;
;
BBC
F_NEW,QUIT
LDM
34H,#0BH
;
;
QUIT:
RET

then ( PC )
( PC ) + rel
OP Code
x2
x3
F_NEW
EQU
1,23H
;
;
BBS
F_NEW,QUIT
LDM
34H,#0BH
QUIT:
RET
Bytes
Cycles
2
4/6
3
5/7
; IF F_NEW = 0, QUIT
;
Bytes
Cycles
2
4/6
3
5/7
; IF F_NEW =1, QUIT
= 1, SKIP

Advertisement

Table of Contents
loading

Table of Contents