SN8P1600
8-bit micro-controller
MULTI-ADDRESS JUMPING
Users can jump round multi-address by either JMP instruction or ADD M, An instruction (M = PCL) to activate
multi-address jumping function. If carry flag occurs after execution of ADD PCL, A, the carry flag will not affect PCH
register.
ꢃ
Example: If PC = 0323H (PCH = 03H、PCL = 23H)
; PC = 0323H
MOV
A, #28H
B0MOV
.
.
.
MOV
B0MOV
PCL, A
.
.
.
A, #00H
PCL, A
; Jump to address 0328H
; Jump to address 0300H
; PC = 0328H
ꢃ
Example: If PC = 0323H (PCH = 03H、PCL = 23H)
; PC = 0323H
B0ADD
JMP
JMP
JMP
JMP
.
PCL, A
A0POINT
A1POINT
A2POINT
A3POINT
.
; PCL = PCL + ACC, the PCH cannot be changed.
; If ACC = 0, jump to A0POINT
; ACC = 1, jump to A1POINT
; ACC = 2, jump to A2POINT
; ACC = 3, jump to A3POINT
;
SONiX TECHNOLOGY CO., LTD
Page 34
Revision 1.94