HYUNDAI MicroElectonics
26
BPL
( Branch if plus )
Function
: if (N) = 0, then ( PC )
( PC ) + rel
Description : Branches if negative flag is “0”
Flag
:
Mnemonic
OP Code
Bytes
Cycles
BPL rel
10
2
2/4
Example
:
; DATA MOVE
186 F0E3 1E02
LDX
#2
; SET COUNTER
187 F0E5 C630
CONTI:
LDA
30H+X
188 F0E7 E640
STA
40H+X
189 F0E9 AF
DEC
X
190 F0EA 10F9
BPL
CONTI
191 F0EC FF
NOP
BRA
( Branch always )
Function
: ( PC )
( PC ) + rel
Description : Unconditional short branch.
Flag :
Mnemonic
OP Code
Bytes
Cycles
BRA rel
2F
2
4
Example
:
156 E0B5 E40330
PROGA:
LDM
30H,#3H
157 E0B8 E40D31
LDM
31H,#0DH
158 E0BB E40F32
LDM
32H,#0FH
159 E0BE E40933
LDM
33H,#9H
160 E0C1 E40034
LDM
34H,#0H
161 E0C4 E40335
LDM
35H,#3H
162 E0C7 E40236
LDM
36H,#2H
163 E0CA 2FB2
BRA
PROGB
Содержание GMS800
Страница 1: ...NOV 1996 Rev 1 0 8 BIT SINGLE CHIP MICROCOMPUTERS GMS800 Series Instruction Manual ...
Страница 4: ......
Страница 20: ...HYUNDAI MicroElectonics 16 ...
Страница 68: ...HYUNDAI MicroElectonics 64 ...