English
Language : 

SN8P1602B Datasheet, PDF (30/76 Pages) SONiX Technology Company – 8-Bit Micro-Controller
SN8P1602B
8-Bit Micro-Controller
ONE ADDRESS SKIPPING
There are nine instructions (CMPRS, INCS, INCMS, DECS, DECMS, BTS0, BTS1, B0BTS0, B0BTS1) with one
address skipping function. If the result of these instructions is true, the PC will add 2 steps to skip next instruction.
If the condition of bit test instruction is true, the PC will add 2 steps to skip next instruction.
C0STEP:
B0BTS1
JMP
.
NOP
FC
C0STEP
; To skip, if Carry_flag = 1
; Else jump to C0STEP.
C1STEP:
B0MOV
B0BTS0
JMP
.
NOP
A, BUF0
FZ
C1STEP
; Move BUF0 value to ACC.
; To skip, if Zero flag = 0.
; Else jump to C1STEP.
If the ACC is equal to the immediate data or memory, the PC will add 2 steps to skip next instruction.
C0STEP:
CMPRS
JMP
.
NOP
A, #12H
C0STEP
; To skip, if ACC = 12H.
; Else jump to C0STEP.
If the destination increased by 1, which results overflow of 0xFF to 0x00, the PC will add 2 steps to skip next
instruction.
INCS instruction:
C0STEP:
INCS
JMP
…
NOP
BUF0
C0STEP
; Jump to C0STEP if ACC is not zero.
INCMS instruction:
INCMS
JMP
…
C0STEP:
NOP
BUF0
C0STEP
; Jump to C0STEP if BUF0 is not zero.
If the destination decreased by 1, which results underflow of 0x00 to 0xFF, the PC will add 2 steps to skip next
instruction.
DECS instruction:
C0STEP:
DECS
JMP
…
NOP
BUF0
C0STEP
; Jump to C0STEP if ACC is not zero.
DECMS instruction:
DECMS
JMP
…
C0STEP:
NOP
BUF0
C0STEP
; Jump to C0STEP if BUF0 is not zero.
SONiX TECHNOLOGY CO., LTD
Page 30
Version 1.1