SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
¾
Example: Defining Interrupt Vector. The interrupt service routine is following user program.
.CODE
ORG
JMP
…
0
; 0000H
START
; Jump to user program address.
ORG
JMP
8
; Interrupt vector.
; 0008H, Jump to interrupt service routine address.
MY_IRQ
ORG
10H
START:
; 0010H, The head of user program.
; User program.
…
…
…
JMP
…
START
; End of user program.
MY_IRQ:
;The head of interrupt service routine.
PUSH
…
; Save ACC and PFLAG register to buffers.
…
POP
RETI
…
; Load ACC and PFLAG register from buffers.
; End of interrupt service routine.
ENDP
; End of program.
Note: It is easy to understand the rules of SONIX program from demo programs given above. These
points are as following:
1. The address 0000H is a “JMP” instruction to make the program starts from the beginning.
2. The address 0008H is interrupt vector.
3. User’s program is a loop routine for main purpose application.
SONiX TECHNOLOGY CO., LTD
Page 18
Version 1.1