SN8P1600
8-bit micro-controller
12 CODING ISSUE
TEMPLATE CODE
;*******************************************************************************
; 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
INCLUDESTD
INCLUDESTD
MACRO1.H
MACRO2.H
MACRO3.H
.list
; Enable the listing function
;-------------------------------------------------------------------------------
Constants Definition
;-------------------------------------------------------------------------------
ONE EQU
;
;
1
;-------------------------------------------------------------------------------
Variables Definition
;
;-------------------------------------------------------------------------------
.DATA
org
DS
DS
DS
DS
0h
1
1
1
1
;Data section start from RAM address 0
;Temporary buffer for main loop
;Temporary buffer for ISR
;Accumulater buffer
Wk00
Iwk00
AccBuf
PflagBuf
;PFLAG buffer
;-------------------------------------------------------------------------------
Bit Variables Definition
;-------------------------------------------------------------------------------
;
Wk00B0
Iwk00B1
EQU
EQU
Wk00.0
Iwk00.1
;Bit 0 of Wk00
;Bit 1 of Iwk00
SONiX TECHNOLOGY CO., LTD
Page 79
Revision 1.94