Hyundai GMS800 Instruction Manual page 33

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

Advertisement

CBNE
( Compare and branch if not equal )

Function
: ( A )
if (Z)
Description : Compare the accumulator and the contents of memory and then if the result is not zero, then
branch to specified address. The accumulator and the contents of memory are not changed.

Flag
:
Mnemonic
CBNE dp,rel
CBNE dp+X,rel
Example
:
144 E0A6 C4A4
145 E0A8 FD440B
CLR1
( Clear bit )
Function
: ( dp.bit )
Description : Clear the specified bit of memory.

Flag
:
Mnemonic
CLR1 dp.bit
* y means that the bit4 of op code is "1"
Example :
220 E100 5143
221 E102 2F02
222 E104 4143
223 E106 FF
( M ) ,

0 , then
( PC )
OP Code
FD
8D
LDA
CBNE

" 0 "
OP Code
y1
CLR1
BRA
SET1
LPE3:
NOP
( PC ) + rel
Bytes
Cycles
3
5/7
3
6/8
#0A4H
INFM,TIN
; TEST INFM = #0A4H
Bytes
Cycles
2
4
43H.2
LPE3
43H.2
Instruction Set
29

Advertisement

Table of Contents
loading

Table of Contents