DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

SN8P2606 查看數據表(PDF) - Sonix Technology Co., Ltd

零件编号
产品描述 (功能)
生产厂家
SN8P2606
SONiX
Sonix Technology Co., Ltd SONiX
SN8P2606 Datasheet PDF : 112 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
SN8P2608
8-Bit Micro-Controller
2.1.1.4 JUMP TABLE DESCRIPTION
The jump table operation is one of multi-address jumping function. Add low-byte program counter (PCL) and ACC
value to get one new PCL. If PCL is overflow after PCL+ACC, PCH adds one automatically. The new program counter
(PC) points to a series jump instructions as a listing table. It is easy to make a multi-jump program depends on the
value of the accumulator (A).
’ Note: PCH only support PC up counting result and doesn’t support PC down counting. When PCL is
carry after PCL+ACC, PCH adds one automatically. If PCL borrow after PCL–ACC, PCH keeps value and
not change.
¾ Example: Jump table.
ORG
B0ADD
JMP
JMP
JMP
JMP
0X0100
PCL, A
A0POINT
A1POINT
A2POINT
A3POINT
; The jump table is from the head of the ROM boundary
; PCL = PCL + ACC, PCH + 1 when PCL overflow occurs.
; ACC = 0, jump to A0POINT
; ACC = 1, jump to A1POINT
; ACC = 2, jump to A2POINT
; ACC = 3, jump to A3POINT
SONIX provides a macro for safe jump table function. This macro will check the ROM boundary and move the jump
table to the right position automatically. The side effect of this macro maybe wastes some ROM size.
¾ Example: If “jump table” crosses over ROM boundary will cause errors.
@JMP_A
MACRO
IF
JMP
ORG
ENDIF
ADD
ENDM
VAL
(($+1) !& 0XFF00) !!= (($+(VAL)) !& 0XFF00)
($ | 0XFF)
($ | 0XFF)
PCL, A
’ Note: “VAL” is the number of the jump table listing number.
SONiX TECHNOLOGY CO., LTD
Page 18
Version 1.4

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]