		LIST
;mc9932.inc    Standard Header File, Version 1.00 by Sinomcu
		NOLIST

;==========================================================================
;
;	Verify Processor
;
;==========================================================================

;	IFNDEF __99P2
;		MESSG "Processor-header file mismatch.  Verify selected processor."
;	ENDIF

;==========================================================================
;
;	Register Definitions
;
;==========================================================================

;----- Register Files ---------------------------------------------------

INDF      		EQU		H'0000'
T0CNT     		EQU		H'0001'
PCL       		EQU		H'0002'
STATUS    		EQU		H'0003'
FSR       		EQU		H'0004'
GPR1      		EQU		H'0005'
P1        		EQU		H'0006'
GPR0      		EQU		H'0007'
MCR       		EQU		H'0008'
P1KBCR    		EQU		H'0009'
PCLATH    		EQU		H'000A'
PDCON     		EQU		H'000B'
ODCON     		EQU		H'000C'
PUCON     		EQU		H'000D'
INTE      		EQU		H'000E'
INTF      		EQU		H'000F'
T0CR      		EQU		H'0041'
T1DATD    		EQU		H'0042'
T1DATE    		EQU		H'0043'
P1ADCR    		EQU		H'0044'
DDR1      		EQU		H'0046'
PWM1CR1   		EQU		H'0047'
PWM1CR0   		EQU		H'0048'
T1DATB    		EQU		H'0049'
T1DATC    		EQU		H'004A'
TM0CR     		EQU		H'004B'
T1CR      		EQU		H'004C'
T1CNT     		EQU		H'004D'
T1LOAD    		EQU		H'004E'
T1DATA    		EQU		H'004F'
CMPCR0    		EQU		H'0050'
CMPCR1    		EQU		H'0051'
CMPCR2    		EQU		H'0052'
CMPCLR    		EQU		H'0053'
INFOAH    		EQU		H'0054'
INFOAL    		EQU		H'0055'
INFOBH    		EQU		H'0056'
INFOBL    		EQU		H'0057'

;----- INDF Bits ---------------------------------------------------

#define 	INDF0     	INDF,0
#define 	INDF1     	INDF,1
#define 	INDF2     	INDF,2
#define 	INDF3     	INDF,3
#define 	INDF4     	INDF,4
#define 	INDF5     	INDF,5
#define 	INDF6     	INDF,6
#define 	INDF7     	INDF,7

;----- T0CNT Bits ---------------------------------------------------

#define 	T0CNT0    	T0CNT,0
#define 	T0CNT1    	T0CNT,1
#define 	T0CNT2    	T0CNT,2
#define 	T0CNT3    	T0CNT,3
#define 	T0CNT4    	T0CNT,4
#define 	T0CNT5    	T0CNT,5
#define 	T0CNT6    	T0CNT,6
#define 	T0CNT7    	T0CNT,7

;----- PCL Bits ---------------------------------------------------

#define 	PC0       	PCL,0
#define 	PC1       	PCL,1
#define 	PC2       	PCL,2
#define 	PC3       	PCL,3
#define 	PC4       	PCL,4
#define 	PC5       	PCL,5
#define 	PC6       	PCL,6
#define 	PC7       	PCL,7

;----- STATUS Bits ---------------------------------------------------

#define 	C         	STATUS,0
#define 	DC        	STATUS,1
#define 	Z         	STATUS,2
#define 	PD        	STATUS,3
#define 	TO        	STATUS,4
#define 	WKUP      	STATUS,7

;----- FSR Bits ---------------------------------------------------

#define 	FSR0      	FSR,0
#define 	FSR1      	FSR,1
#define 	FSR2      	FSR,2
#define 	FSR3      	FSR,3
#define 	FSR4      	FSR,4
#define 	FSR5      	FSR,5
#define 	FSR6      	FSR,6

;----- P1 Bits ---------------------------------------------------

#define 	P10D      	P1,0
#define 	P11D      	P1,1
#define 	P12D      	P1,2
#define 	P13D      	P1,3
#define 	P14D      	P1,4
#define 	P15D      	P1,5
#define 	P16D      	P1,6
#define 	P17D      	P1,7

;----- MCR Bits ---------------------------------------------------

#define 	CMPOF     	MCR,5
#define 	EIS       	MCR,6
#define 	WDTEN     	MCR,7

;----- P1KBCR Bits ---------------------------------------------------

#define 	P10KE     	P1KBCR,0
#define 	P11KE     	P1KBCR,1
#define 	P12KE     	P1KBCR,2
#define 	P13KE     	P1KBCR,3
#define 	P14KE     	P1KBCR,4
#define 	P15KE     	P1KBCR,5
#define 	P16KE     	P1KBCR,6
#define 	P17KE     	P1KBCR,7

;----- PCLATH Bits ---------------------------------------------------

#define 	PCH0      	PCLATH,0
#define 	PCH1      	PCLATH,1

;----- PDCON Bits ---------------------------------------------------

#define 	P10PD     	PDCON,0
#define 	P11PD     	PDCON,1
#define 	P12PD     	PDCON,2
#define 	P13PD     	PDCON,3
#define 	P14PD     	PDCON,4
#define 	P15PD     	PDCON,5
#define 	P16PD     	PDCON,6
#define 	P17PD     	PDCON,7

;----- ODCON Bits ---------------------------------------------------

#define 	P10OD     	ODCON,0
#define 	P11OD     	ODCON,1
#define 	P12OD     	ODCON,2
#define 	P14OD     	ODCON,4
#define 	P15OD     	ODCON,5
#define 	P16OD     	ODCON,6
#define 	P17OD     	ODCON,7

;----- PUCON Bits ---------------------------------------------------

#define 	P10PU     	PUCON,0
#define 	P11PU     	PUCON,1
#define 	P12PU     	PUCON,2
#define 	P13PU     	PUCON,3
#define 	P14PU     	PUCON,4
#define 	P15PU     	PUCON,5
#define 	P16PU     	PUCON,6
#define 	P17PU     	PUCON,7

;----- INTE Bits ---------------------------------------------------

#define 	T0IE      	INTE,0
#define 	KBIE      	INTE,1
#define 	INTIE     	INTE,2
#define 	GIE       	INTE,7

;----- INTF Bits ---------------------------------------------------

#define 	T0IF      	INTF,0
#define 	KBIF      	INTF,1
#define 	INTIF     	INTF,2

;----- T0CR Bits ---------------------------------------------------

#define 	T0PRS0    	T0CR,0
#define 	T0PRS1    	T0CR,1
#define 	T0PRS2    	T0CR,2
#define 	T0PTA     	T0CR,3
#define 	T0CSE     	T0CR,4
#define 	T0PTS     	T0CR,5
#define 	INTM      	T0CR,6

;----- T1DATD Bits ---------------------------------------------------

#define 	T1DATD0   	T1DATD,0
#define 	T1DATD1   	T1DATD,1
#define 	T1DATD2   	T1DATD,2
#define 	T1DATD3   	T1DATD,3
#define 	T1DATD4   	T1DATD,4
#define 	T1DATD5   	T1DATD,5
#define 	T1DATD6   	T1DATD,6
#define 	T1DATD7   	T1DATD,7

;----- T1DATE Bits ---------------------------------------------------

#define 	T1DATE0   	T1DATE,0
#define 	T1DATE1   	T1DATE,1
#define 	T1DATE2   	T1DATE,2
#define 	T1DATE3   	T1DATE,3
#define 	T1DATE4   	T1DATE,4
#define 	T1DATE5   	T1DATE,5
#define 	T1DATE6   	T1DATE,6
#define 	T1DATE7   	T1DATE,7

;----- P1ADCR Bits ---------------------------------------------------

#define 	P10DC     	P1ADCR,0
#define 	P11DC     	P1ADCR,1
#define 	P13DC     	P1ADCR,3
#define 	P16DC     	P1ADCR,6
#define 	P17DC     	P1ADCR,7

;----- DDR1 Bits ---------------------------------------------------

#define 	DDR10     	DDR1,0
#define 	DDR11     	DDR1,1
#define 	DDR12     	DDR1,2
#define 	DDR13     	DDR1,3
#define 	DDR14     	DDR1,4
#define 	DDR15     	DDR1,5
#define 	DDR16     	DDR1,6
#define 	DDR17     	DDR1,7

;----- PWM1CR1 Bits ---------------------------------------------------

#define 	PWM1EOS   	PWM1CR1,0
#define 	PWM1DOS   	PWM1CR1,1
#define 	PWM1BOS   	PWM1CR1,2
#define 	PWM1LG    	PWM1CR1,3

;----- PWM1CR0 Bits ---------------------------------------------------

#define 	PWM1EOE   	PWM1CR0,0
#define 	PWM1EEN   	PWM1CR0,1
#define 	PWM1DOE   	PWM1CR0,2
#define 	PWM1DEN   	PWM1CR0,3
#define 	PWM1CEC   	PWM1CR0,4
#define 	PWM1BOE   	PWM1CR0,5
#define 	PWM1BEN   	PWM1CR0,6
#define 	PWM1AEC   	PWM1CR0,7

;----- T1DATB Bits ---------------------------------------------------

#define 	T1DATB0   	T1DATB,0
#define 	T1DATB1   	T1DATB,1
#define 	T1DATB2   	T1DATB,2
#define 	T1DATB3   	T1DATB,3
#define 	T1DATB4   	T1DATB,4
#define 	T1DATB5   	T1DATB,5
#define 	T1DATB6   	T1DATB,6
#define 	T1DATB7   	T1DATB,7

;----- T1DATC Bits ---------------------------------------------------

#define 	T1DATC0   	T1DATC,0
#define 	T1DATC1   	T1DATC,1
#define 	T1DATC2   	T1DATC,2
#define 	T1DATC3   	T1DATC,3
#define 	T1DATC4   	T1DATC,4
#define 	T1DATC5   	T1DATC,5
#define 	T1DATC6   	T1DATC,6
#define 	T1DATC7   	T1DATC,7

;----- TM0CR Bits ---------------------------------------------------

#define 	T1IF      	TM0CR,0
#define 	T1IE      	TM0CR,1
#define 	T0TBS     	TM0CR,7

;----- T1CR Bits ---------------------------------------------------

#define 	T1PRS0    	T1CR,0
#define 	T1PRS1    	T1CR,1
#define 	T1PRS2    	T1CR,2
#define 	T1CKS0    	T1CR,3
#define 	T1CKS1    	T1CR,4
#define 	BUZ1OE    	T1CR,5
#define 	T1EN      	T1CR,7

;----- T1CNT Bits ---------------------------------------------------

#define 	T1CNT0    	T1CNT,0
#define 	T1CNT1    	T1CNT,1
#define 	T1CNT2    	T1CNT,2
#define 	T1CNT3    	T1CNT,3
#define 	T1CNT4    	T1CNT,4
#define 	T1CNT5    	T1CNT,5
#define 	T1CNT6    	T1CNT,6
#define 	T1CNT7    	T1CNT,7

;----- T1LOAD Bits ---------------------------------------------------

#define 	T1LOAD0   	T1LOAD,0
#define 	T1LOAD1   	T1LOAD,1
#define 	T1LOAD2   	T1LOAD,2
#define 	T1LOAD3   	T1LOAD,3
#define 	T1LOAD4   	T1LOAD,4
#define 	T1LOAD5   	T1LOAD,5
#define 	T1LOAD6   	T1LOAD,6
#define 	T1LOAD7   	T1LOAD,7

;----- T1DATA Bits ---------------------------------------------------

#define 	T1DATA0   	T1DATA,0
#define 	T1DATA1   	T1DATA,1
#define 	T1DATA2   	T1DATA,2
#define 	T1DATA3   	T1DATA,3
#define 	T1DATA4   	T1DATA,4
#define 	T1DATA5   	T1DATA,5
#define 	T1DATA6   	T1DATA,6
#define 	T1DATA7   	T1DATA,7

;----- CMPCR0 Bits ---------------------------------------------------

#define 	CMPOE     	CMPCR0,0
#define 	CMPNV     	CMPCR0,1
#define 	EVDIS0    	CMPCR0,2
#define 	EVDIS1    	CMPCR0,3
#define 	EVDIS2    	CMPCR0,4
#define 	CMPNS     	CMPCR0,5
#define 	CMPPS     	CMPCR0,6
#define 	CMPEN     	CMPCR0,7

;----- CMPCR1 Bits ---------------------------------------------------

#define 	EVDVS0    	CMPCR1,0
#define 	EVDVS1    	CMPCR1,1
#define 	EVDVS2    	CMPCR1,2
#define 	EVDVS3    	CMPCR1,3
#define 	EVDVS4    	CMPCR1,4
#define 	EVDVS5    	CMPCR1,5

;----- CMPCR2 Bits ---------------------------------------------------

#define 	CMPIF     	CMPCR2,0
#define 	CMPIE     	CMPCR2,1
#define 	CMPIM     	CMPCR2,2
#define 	CMPOS     	CMPCR2,3

;----- CMPCLR Bits ---------------------------------------------------

#define 	CMPCLR0   	CMPCLR,0
#define 	CMPCLR1   	CMPCLR,1
#define 	CMPCLR2   	CMPCLR,2
#define 	CMPCLR3   	CMPCLR,3
#define 	CMPCLR4   	CMPCLR,4
#define 	CMPCLR5   	CMPCLR,5
#define 	CMPCLRS   	CMPCLR,6
#define 	CMPCLRE   	CMPCLR,7

;----- INFOAH Bits ---------------------------------------------------

#define 	INFOA8    	INFOAH,0
#define 	INFOA9    	INFOAH,1
#define 	INFOA10   	INFOAH,2
#define 	INFOA11   	INFOAH,3
#define 	INFOA12   	INFOAH,4
#define 	INFOA13   	INFOAH,5
#define 	INFOA14   	INFOAH,6
#define 	INFOA15   	INFOAH,7

;----- INFOAL Bits ---------------------------------------------------

#define 	INFOA0    	INFOAL,0
#define 	INFOA1    	INFOAL,1
#define 	INFOA2    	INFOAL,2
#define 	INFOA3    	INFOAL,3
#define 	INFOA4    	INFOAL,4
#define 	INFOA5    	INFOAL,5
#define 	INFOA6    	INFOAL,6
#define 	INFOA7    	INFOAL,7

;----- INFOBH Bits ---------------------------------------------------

#define 	INFOB8    	INFOBH,0
#define 	INFOB9    	INFOBH,1
#define 	INFOB10   	INFOBH,2
#define 	INFOB11   	INFOBH,3
#define 	INFOB12   	INFOBH,4
#define 	INFOB13   	INFOBH,5
#define 	INFOB14   	INFOBH,6
#define 	INFOB15   	INFOBH,7

;----- INFOBL Bits ---------------------------------------------------

#define 	INFOB0    	INFOBL,0
#define 	INFOB1    	INFOBL,1
#define 	INFOB2    	INFOBL,2
#define 	INFOB3    	INFOBL,3
#define 	INFOB4    	INFOBL,4
#define 	INFOB5    	INFOBL,5
#define 	INFOB6    	INFOBL,6
#define 	INFOB7    	INFOBL,7

;==========================================================================
;
;	RAM Definition
;
;==========================================================================

	__MAXRAM H'FF'
	__BADRAM H'80'-H'81'
	__BADRAM H'85'


;==========================================================================
;
;	Configuration Bits
;
;==========================================================================

_CONFIG1  		EQU		H'8001'
_CONFIG0  		EQU		H'8000'

;OPBIT1

;OPBIT0

		LIST
