Hyundai GMS800 Instruction Manual page 16

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

Advertisement

HYUNDAI MicroElectonics
Example)
F2 30


dp.bit Relative
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
Operand
Memory
Example)
33 35 30

Etc.
Mixing instruction ( BNE rel after CMP or DEC operation )
CBNE
CBNE
DBNE
DBNE
12
( A=55
)
h
BBC A.7,30H
Op code
Accumulator
dp.bit,rel
dp
rel
BBC
BBS
( G=0, ( 0035
)=55
h
BBC 35H.1,30H

dp,rel

dp+X,rel

dp,rel

Y,rel
1
1
1
1
2
h
0
1
0
1
0
1
0
1
PC+30
Instructions
)
h
Op code
0
0
1
1
3
h
0035
0
1
0
1
0
1
0
1
h
PC+30
CMP dp ,
CMP dp+X,
DEC dp ,
DEC Y ,
MEMORY
Op code ( F2 )
Operand ( 30 )
h
NEXT
MEMORY
Data
( 55 )
Op code ( 33 )
Operand ( 35 )
Operand ( 30 )
NEXT
h
BNE rel
BNE rel
BNE rel
BNE rel


+1

+2
( IF A
=1,)
7

+2+30
035
h


+1

+2

( IF M
=1,)
+3
1

+3+30

Advertisement

Table of Contents
loading

Table of Contents