![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205016.webp)
HYUNDAI MicroElectonics
12
Example)
( A=55
h
)
F2 30
BBC A.7,30H
dp.bit Relative
dp.bit,rel
The branch operation is determined by the bit in memory specified by bit7,6,5 of op code. The branch
address is obtained by adding the contents of operand to the contents of program counter.
OP CODE
dp
rel
Operand
Instructions
Memory
BBC
BBS
Example)
( G=0, ( 0035
h
)=55
h
)
33 35 30
BBC 35H.1,30H
Etc.
Mixing instruction ( BNE rel after CMP or DEC operation )
CBNE
dp,rel
CMP dp ,
BNE rel
CBNE
dp+X,rel
CMP dp+X,
BNE rel
DBNE
dp,rel
DEC dp ,
BNE rel
DBNE
Y,rel
DEC Y ,
BNE rel
1
0
1
0
1
0
1
0
0
0
1
1
3
h
0035
h
Op code
+2
+3
PC+30
h
Op code ( 33 )
Operand ( 35 )
Operand ( 30 )
MEMORY
( IF M
1
=1,)
+3+30
NEXT
+1
035
h
Data ( 55 )
+2
+1
PC+30
h
Op code ( F2 )
Operand ( 30 )
MEMORY
( IF A
7
=1,)
+2+30
NEXT
1
0
1
0
1
0
1
0
1
1
1
1
2
h
Accumulator
Op code