![](http://datasheet.mmic.net.cn/310000/SN8P1603_datasheet_16285364/SN8P1603_79.png)
SN8P1600
1
1
1
2
2
2
CODING ISSUE
TEMPLATE CODE
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 79
Revision 1.94
;*******************************************************************************
; FILENAME : TEMPLATE.ASM
; AUTHOR
: SONiX
; PURPOSE
: Template Code for SN8X16XX
; REVISION : 09/01/2002 V1.0
First issue
;*******************************************************************************
;* (c) Copyright 2002, SONiX TECHNOLOGY CO., LTD.
;*******************************************************************************
CHIP
SN8P1602
; Select the CHIP
;-------------------------------------------------------------------------------
;
Include Files
;-------------------------------------------------------------------------------
.nolist
; do not list the macro file
INCLUDESTD
MACRO1.H
INCLUDESTD
MACRO2.H
INCLUDESTD
MACRO3.H
.list
; Enable the listing function
;-------------------------------------------------------------------------------
;
Constants Definition
;-------------------------------------------------------------------------------
;
ONE
EQU
1
;-------------------------------------------------------------------------------
;
Variables Definition
;-------------------------------------------------------------------------------
.DATA
org
0h
;Data section start from RAM address 0
Wk00
DS
1
;Temporary buffer for main loop
Iwk00
DS
1
;Temporary buffer for ISR
AccBuf
DS
1
;Accumulater buffer
PflagBuf
DS
1
;PFLAG buffer
;-------------------------------------------------------------------------------
;
Bit Variables Definition
;-------------------------------------------------------------------------------
Wk00B0 EQU Wk00.0 ;Bit 0 of Wk00
Iwk00B1
EQU Iwk00.1 ;Bit 1 of Iwk00