SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 33
Version 1.0
MULTI-ADDRESS JUMPING
User can jump round multi-address by either JMP instruction or “ADD PCL, A” instruction to activate multi-address
jumping function. If carry signal occurs after execution of “ADD PCL, A”, the carry signal will not affect PCH register.
Example: If PC = 0323H (PCH = 03H
、
PCL = 23H)
; PC = 0323H
MOV
A,
#28H
B0MOV PCL, A ; Jump to address 0328H
.
.
.
.
; PC = 0328H .
.
MOV
A,
#00H
B0MOV PCL, A ; Jump to address 0300H
Example: If PC = 0323H (PCH = 03H
、
PCL = 23H)
; PC = 0323H
B0ADD PCL, A ; PCL = PCL + ACC, the PCH cannot be changed.
JMP A0POINT
; If ACC = 0, jump to A0POINT
JMP A1POINT
; ACC = 1, jump to A1POINT
JMP A2POINT
; ACC = 2, jump to A2POINT
JMP A3POINT
; ACC = 3, jump to A3POINT