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

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

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

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

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

LCDR0     		EQU		H'0100'
LCDR1     		EQU		H'0101'
LCDR2     		EQU		H'0102'
LCDR3     		EQU		H'0103'
LCDR4     		EQU		H'0104'
LCDR5     		EQU		H'0105'
LCDR6     		EQU		H'0106'
LCDR7     		EQU		H'0107'
LCDR8     		EQU		H'0108'
LCDR9     		EQU		H'0109'
LCDR10    		EQU		H'010A'
LCDR11    		EQU		H'010B'
LCDR12    		EQU		H'010C'
LCDR13    		EQU		H'010D'
LCDR14    		EQU		H'010E'
LCDR15    		EQU		H'010F'
LCDR16    		EQU		H'0110'
LCDR17    		EQU		H'0111'
LCDR18    		EQU		H'0112'
INDF0     		EQU		H'0180'
INDF1     		EQU		H'0181'
INDF2     		EQU		H'0182'
HIBYTE    		EQU		H'0183'
FSR0      		EQU		H'0184'
FSR1      		EQU		H'0185'
PCL       		EQU		H'0186'
PFLAG     		EQU		H'0187'
MCR       		EQU		H'0188'
INDF3     		EQU		H'0189'
INTE0     		EQU		H'018A'
INTF0     		EQU		H'018B'
OSCMR     		EQU		H'018C'
LVDCR     		EQU		H'018D'
INTE1     		EQU		H'018E'
INTF1     		EQU		H'018F'
IOP0      		EQU		H'0190'
OEP0      		EQU		H'0191'
PUP0      		EQU		H'0192'
PDP0      		EQU		H'0193'
IOP1      		EQU		H'0194'
OEP1      		EQU		H'0195'
PUP1      		EQU		H'0196'
PDP1      		EQU		H'0197'
IOP2      		EQU		H'0198'
OEP2      		EQU		H'0199'
PUP2      		EQU		H'019A'
PDP2      		EQU		H'019B'
IOP3      		EQU		H'019C'
OEP3      		EQU		H'019D'
PUP3      		EQU		H'019E'
PDP3      		EQU		H'019F'
T0CR      		EQU		H'01A0'
T0CNT     		EQU		H'01A1'
T0LOAD    		EQU		H'01A2'
T1CR      		EQU		H'01A3'
T1CNT     		EQU		H'01A4'
T1LOAD    		EQU		H'01A5'
T1DATA    		EQU		H'01A6'
PWM1CR    		EQU		H'01A7'
T2CR      		EQU		H'01A8'
T2CNT     		EQU		H'01A9'
T2LOAD    		EQU		H'01AA'
T2DATA    		EQU		H'01AB'
T2DATB    		EQU		H'01AC'
PWM2CR    		EQU		H'01AD'
T3CR      		EQU		H'01B0'
T3CNTH    		EQU		H'01B1'
T3CNTL    		EQU		H'01B2'
T3LOADH   		EQU		H'01B3'
T3LOADL   		EQU		H'01B4'
P2ADCR    		EQU		H'01B6'
P3ADCR    		EQU		H'01B7'
DKSCR     		EQU		H'01B8'
P0DKCR    		EQU		H'01B9'
P1DKCR    		EQU		H'01BA'
P2DKCR    		EQU		H'01BB'
P3DKCR    		EQU		H'01BC'
XTALCR    		EQU		H'01BE'
XTICCAL   		EQU		H'01BF'
LCDCR0    		EQU		H'01C0'
LCDCR1    		EQU		H'01C1'
P0LCDCR   		EQU		H'01C2'
P1LCDCR   		EQU		H'01C3'
P2LCDCR   		EQU		H'01C4'
HIRCCAL   		EQU		H'01C6'
LIRCCAL   		EQU		H'01C7'
IICCR0    		EQU		H'01C8'
IICCR1    		EQU		H'01C9'
IICCR2    		EQU		H'01CA'
IICDR     		EQU		H'01CB'
IICAR     		EQU		H'01CC'
IICAAR    		EQU		H'01CD'
IICAMR    		EQU		H'01CE'
URTCR0    		EQU		H'01D0'
URTCR1    		EQU		H'01D1'
URTCR2    		EQU		H'01D2'
URTSR     		EQU		H'01D3'
URTBR     		EQU		H'01D4'
URTDR     		EQU		H'01D5'
URTAR     		EQU		H'01D6'
URTMR     		EQU		H'01D7'

;----- LCDR0 Bits ---------------------------------------------------

#define 	LCD0S0    	LCDR0,0
#define 	LCD1S0    	LCDR0,1
#define 	LCD2S0    	LCDR0,2
#define 	LCD3S0    	LCDR0,3
#define 	LCD4S0    	LCDR0,4

;----- LCDR1 Bits ---------------------------------------------------

#define 	LCD0S1    	LCDR1,0
#define 	LCD1S1    	LCDR1,1
#define 	LCD2S1    	LCDR1,2
#define 	LCD3S1    	LCDR1,3
#define 	LCD4S1    	LCDR1,4

;----- LCDR2 Bits ---------------------------------------------------

#define 	LCD0S2    	LCDR2,0
#define 	LCD1S2    	LCDR2,1
#define 	LCD2S2    	LCDR2,2
#define 	LCD3S2    	LCDR2,3
#define 	LCD4S2    	LCDR2,4

;----- LCDR3 Bits ---------------------------------------------------

#define 	LCD0S3    	LCDR3,0
#define 	LCD1S3    	LCDR3,1
#define 	LCD2S3    	LCDR3,2
#define 	LCD3S3    	LCDR3,3
#define 	LCD4S3    	LCDR3,4

;----- LCDR4 Bits ---------------------------------------------------

#define 	LCD0S4    	LCDR4,0
#define 	LCD1S4    	LCDR4,1
#define 	LCD2S4    	LCDR4,2
#define 	LCD3S4    	LCDR4,3
#define 	LCD4S4    	LCDR4,4

;----- LCDR5 Bits ---------------------------------------------------

#define 	LCD0S5    	LCDR5,0
#define 	LCD1S5    	LCDR5,1
#define 	LCD2S5    	LCDR5,2
#define 	LCD3S5    	LCDR5,3
#define 	LCD4S5    	LCDR5,4

;----- LCDR6 Bits ---------------------------------------------------

#define 	LCD0S6    	LCDR6,0
#define 	LCD1S6    	LCDR6,1
#define 	LCD2S6    	LCDR6,2
#define 	LCD3S6    	LCDR6,3
#define 	LCD4S6    	LCDR6,4

;----- LCDR7 Bits ---------------------------------------------------

#define 	LCD0S7    	LCDR7,0
#define 	LCD1S7    	LCDR7,1
#define 	LCD2S7    	LCDR7,2
#define 	LCD3S7    	LCDR7,3
#define 	LCD4S7    	LCDR7,4

;----- LCDR8 Bits ---------------------------------------------------

#define 	LCD0S8    	LCDR8,0
#define 	LCD1S8    	LCDR8,1
#define 	LCD2S8    	LCDR8,2
#define 	LCD3S8    	LCDR8,3
#define 	LCD4S8    	LCDR8,4

;----- LCDR9 Bits ---------------------------------------------------

#define 	LCD0S9    	LCDR9,0
#define 	LCD1S9    	LCDR9,1
#define 	LCD2S9    	LCDR9,2
#define 	LCD3S9    	LCDR9,3
#define 	LCD4S9    	LCDR9,4

;----- LCDR10 Bits ---------------------------------------------------

#define 	LCD0S10   	LCDR10,0
#define 	LCD1S10   	LCDR10,1
#define 	LCD2S10   	LCDR10,2
#define 	LCD3S10   	LCDR10,3
#define 	LCD4S10   	LCDR10,4

;----- LCDR11 Bits ---------------------------------------------------

#define 	LCD0S11   	LCDR11,0
#define 	LCD1S11   	LCDR11,1
#define 	LCD2S11   	LCDR11,2
#define 	LCD3S11   	LCDR11,3
#define 	LCD4S11   	LCDR11,4

;----- LCDR12 Bits ---------------------------------------------------

#define 	LCD0S12   	LCDR12,0
#define 	LCD1S12   	LCDR12,1
#define 	LCD2S12   	LCDR12,2
#define 	LCD3S12   	LCDR12,3
#define 	LCD4S12   	LCDR12,4

;----- LCDR13 Bits ---------------------------------------------------

#define 	LCD0S13   	LCDR13,0
#define 	LCD1S13   	LCDR13,1
#define 	LCD2S13   	LCDR13,2
#define 	LCD3S13   	LCDR13,3
#define 	LCD4S13   	LCDR13,4

;----- LCDR14 Bits ---------------------------------------------------

#define 	LCD0S14   	LCDR14,0
#define 	LCD1S14   	LCDR14,1
#define 	LCD2S14   	LCDR14,2
#define 	LCD3S14   	LCDR14,3
#define 	LCD4S14   	LCDR14,4

;----- LCDR15 Bits ---------------------------------------------------

#define 	LCD0S15   	LCDR15,0
#define 	LCD1S15   	LCDR15,1
#define 	LCD2S15   	LCDR15,2
#define 	LCD3S15   	LCDR15,3
#define 	LCD4S15   	LCDR15,4

;----- LCDR16 Bits ---------------------------------------------------

#define 	LCD0S16   	LCDR16,0
#define 	LCD1S16   	LCDR16,1
#define 	LCD2S16   	LCDR16,2
#define 	LCD3S16   	LCDR16,3
#define 	LCD4S16   	LCDR16,4

;----- LCDR17 Bits ---------------------------------------------------

#define 	LCD0S17   	LCDR17,0
#define 	LCD1S17   	LCDR17,1
#define 	LCD2S17   	LCDR17,2
#define 	LCD3S17   	LCDR17,3
#define 	LCD4S17   	LCDR17,4

;----- LCDR18 Bits ---------------------------------------------------

#define 	LCD0S18   	LCDR18,0
#define 	LCD1S18   	LCDR18,1
#define 	LCD2S18   	LCDR18,2
#define 	LCD3S18   	LCDR18,3
#define 	LCD4S18   	LCDR18,4

;----- INDF0 Bits ---------------------------------------------------

#define 	INDF00    	INDF0,0
#define 	INDF01    	INDF0,1
#define 	INDF02    	INDF0,2
#define 	INDF03    	INDF0,3
#define 	INDF04    	INDF0,4
#define 	INDF05    	INDF0,5
#define 	INDF06    	INDF0,6
#define 	INDF07    	INDF0,7

;----- INDF1 Bits ---------------------------------------------------

#define 	INDF10    	INDF1,0
#define 	INDF11    	INDF1,1
#define 	INDF12    	INDF1,2
#define 	INDF13    	INDF1,3
#define 	INDF14    	INDF1,4
#define 	INDF15    	INDF1,5
#define 	INDF16    	INDF1,6
#define 	INDF17    	INDF1,7

;----- INDF2 Bits ---------------------------------------------------

#define 	INDF20    	INDF2,0
#define 	INDF21    	INDF2,1
#define 	INDF22    	INDF2,2
#define 	INDF23    	INDF2,3
#define 	INDF24    	INDF2,4
#define 	INDF25    	INDF2,5
#define 	INDF26    	INDF2,6
#define 	INDF27    	INDF2,7

;----- HIBYTE Bits ---------------------------------------------------

#define 	HIBYTE0   	HIBYTE,0
#define 	HIBYTE1   	HIBYTE,1
#define 	HIBYTE2   	HIBYTE,2
#define 	HIBYTE3   	HIBYTE,3
#define 	HIBYTE4   	HIBYTE,4
#define 	HIBYTE5   	HIBYTE,5
#define 	HIBYTE6   	HIBYTE,6
#define 	HIBYTE7   	HIBYTE,7

;----- FSR0 Bits ---------------------------------------------------

#define 	FSR00     	FSR0,0
#define 	FSR01     	FSR0,1
#define 	FSR02     	FSR0,2
#define 	FSR03     	FSR0,3
#define 	FSR04     	FSR0,4
#define 	FSR05     	FSR0,5
#define 	FSR06     	FSR0,6
#define 	FSR07     	FSR0,7

;----- FSR1 Bits ---------------------------------------------------

#define 	FSR10     	FSR1,0
#define 	FSR11     	FSR1,1
#define 	FSR12     	FSR1,2
#define 	FSR13     	FSR1,3
#define 	FSR14     	FSR1,4
#define 	FSR15     	FSR1,5
#define 	FSR16     	FSR1,6
#define 	FSR17     	FSR1,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

;----- PFLAG Bits ---------------------------------------------------

#define 	C         	PFLAG,0
#define 	DC        	PFLAG,1
#define 	Z         	PFLAG,2

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

#define 	KINT0M0   	MCR,0
#define 	KINT0M1   	MCR,1
#define 	KINT1M0   	MCR,2
#define 	KINT1M1   	MCR,3
#define 	PD        	MCR,4
#define 	TO        	MCR,5
#define 	GIE       	MCR,7

;----- INDF3 Bits ---------------------------------------------------

#define 	INDF30    	INDF3,0
#define 	INDF31    	INDF3,1
#define 	INDF32    	INDF3,2
#define 	INDF33    	INDF3,3
#define 	INDF34    	INDF3,4
#define 	INDF35    	INDF3,5
#define 	INDF36    	INDF3,6
#define 	INDF37    	INDF3,7

;----- INTE0 Bits ---------------------------------------------------

#define 	T0IE      	INTE0,0
#define 	T1IE      	INTE0,1
#define 	KINT0IE   	INTE0,2
#define 	KINT1IE   	INTE0,3
#define 	LVDIE     	INTE0,5
#define 	IICIE     	INTE0,6

;----- INTF0 Bits ---------------------------------------------------

#define 	T0IF      	INTF0,0
#define 	T1IF      	INTF0,1
#define 	KINT0IF   	INTF0,2
#define 	KINT1IF   	INTF0,3
#define 	LVDIF     	INTF0,5
#define 	IICIF     	INTF0,6

;----- OSCMR Bits ---------------------------------------------------

#define 	HFEN      	OSCMR,0
#define 	LFEN      	OSCMR,1
#define 	CLKS      	OSCMR,2
#define 	STBH      	OSCMR,4
#define 	STBL      	OSCMR,5

;----- LVDCR Bits ---------------------------------------------------

#define 	LVDF      	LVDCR,0
#define 	LVDIS     	LVDCR,2
#define 	LVDVS0    	LVDCR,3
#define 	LVDVS1    	LVDCR,4
#define 	LVDVS2    	LVDCR,5
#define 	LVDVS3    	LVDCR,6
#define 	LVDEN     	LVDCR,7

;----- INTE1 Bits ---------------------------------------------------

#define 	T2IE      	INTE1,0
#define 	T3IE      	INTE1,1
#define 	XTFIE     	INTE1,2
#define 	RXIE      	INTE1,5
#define 	TBEIE     	INTE1,6
#define 	TXIE      	INTE1,7

;----- INTF1 Bits ---------------------------------------------------

#define 	T2IF      	INTF1,0
#define 	T3IF      	INTF1,1
#define 	XTFIF     	INTF1,2
#define 	RXIF      	INTF1,5
#define 	TBEIF     	INTF1,6
#define 	TXIF      	INTF1,7

;----- IOP0 Bits ---------------------------------------------------

#define 	P00D      	IOP0,0
#define 	P01D      	IOP0,1
#define 	P02D      	IOP0,2
#define 	P03D      	IOP0,3
#define 	P04D      	IOP0,4
#define 	P05D      	IOP0,5
#define 	P06D      	IOP0,6
#define 	P07D      	IOP0,7

;----- OEP0 Bits ---------------------------------------------------

#define 	P00OE     	OEP0,0
#define 	P01OE     	OEP0,1
#define 	P02OE     	OEP0,2
#define 	P03OE     	OEP0,3
#define 	P04OE     	OEP0,4
#define 	P05OE     	OEP0,5
#define 	P06OE     	OEP0,6
#define 	P07OE     	OEP0,7

;----- PUP0 Bits ---------------------------------------------------

#define 	P00PU     	PUP0,0
#define 	P01PU     	PUP0,1
#define 	P02PU     	PUP0,2
#define 	P03PU     	PUP0,3
#define 	P04PU     	PUP0,4
#define 	P05PU     	PUP0,5
#define 	P06PU     	PUP0,6
#define 	P07PU     	PUP0,7

;----- PDP0 Bits ---------------------------------------------------

#define 	P00PD     	PDP0,0
#define 	P01PD     	PDP0,1
#define 	P02PD     	PDP0,2
#define 	P03PD     	PDP0,3
#define 	P04PD     	PDP0,4
#define 	P05PD     	PDP0,5
#define 	P06PD     	PDP0,6
#define 	P07PD     	PDP0,7

;----- IOP1 Bits ---------------------------------------------------

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

;----- OEP1 Bits ---------------------------------------------------

#define 	P10OE     	OEP1,0
#define 	P11OE     	OEP1,1
#define 	P12OE     	OEP1,2
#define 	P13OE     	OEP1,3
#define 	P14OE     	OEP1,4
#define 	P15OE     	OEP1,5
#define 	P16OE     	OEP1,6
#define 	P17OE     	OEP1,7

;----- PUP1 Bits ---------------------------------------------------

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

;----- PDP1 Bits ---------------------------------------------------

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

;----- IOP2 Bits ---------------------------------------------------

#define 	P20D      	IOP2,0
#define 	P21D      	IOP2,1
#define 	P22D      	IOP2,2
#define 	P23D      	IOP2,3
#define 	P24D      	IOP2,4
#define 	P25D      	IOP2,5
#define 	P26D      	IOP2,6
#define 	P27D      	IOP2,7

;----- OEP2 Bits ---------------------------------------------------

#define 	P20OE     	OEP2,0
#define 	P21OE     	OEP2,1
#define 	P22OE     	OEP2,2
#define 	P23OE     	OEP2,3
#define 	P24OE     	OEP2,4
#define 	P25OE     	OEP2,5
#define 	P26OE     	OEP2,6
#define 	P27OE     	OEP2,7

;----- PUP2 Bits ---------------------------------------------------

#define 	P20PU     	PUP2,0
#define 	P21PU     	PUP2,1
#define 	P22PU     	PUP2,2
#define 	P23PU     	PUP2,3
#define 	P24PU     	PUP2,4
#define 	P25PU     	PUP2,5
#define 	P26PU     	PUP2,6
#define 	P27PU     	PUP2,7

;----- PDP2 Bits ---------------------------------------------------

#define 	P20PD     	PDP2,0
#define 	P21PD     	PDP2,1
#define 	P22PD     	PDP2,2
#define 	P23PD     	PDP2,3
#define 	P24PD     	PDP2,4
#define 	P25PD     	PDP2,5
#define 	P26PD     	PDP2,6
#define 	P27PD     	PDP2,7

;----- IOP3 Bits ---------------------------------------------------

#define 	P30D      	IOP3,0
#define 	P31D      	IOP3,1

;----- OEP3 Bits ---------------------------------------------------

#define 	P30OE     	OEP3,0
#define 	P31OE     	OEP3,1

;----- PUP3 Bits ---------------------------------------------------

#define 	P30PU     	PUP3,0
#define 	P31PU     	PUP3,1

;----- PDP3 Bits ---------------------------------------------------

#define 	P30PD     	PDP3,0
#define 	P31PD     	PDP3,1

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

#define 	T0PRS0    	T0CR,0
#define 	T0PRS1    	T0CR,1
#define 	T0PRS2    	T0CR,2
#define 	T0CKS0    	T0CR,3
#define 	T0CKS1    	T0CR,4
#define 	T0EN      	T0CR,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

;----- T0LOAD Bits ---------------------------------------------------

#define 	T0LOAD0   	T0LOAD,0
#define 	T0LOAD1   	T0LOAD,1
#define 	T0LOAD2   	T0LOAD,2
#define 	T0LOAD3   	T0LOAD,3
#define 	T0LOAD4   	T0LOAD,4
#define 	T0LOAD5   	T0LOAD,5
#define 	T0LOAD6   	T0LOAD,6
#define 	T0LOAD7   	T0LOAD,7

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

#define 	T1PRS0    	T1CR,0
#define 	T1PRS1    	T1CR,1
#define 	T1PRS2    	T1CR,2
#define 	T1CKS0    	T1CR,3
#define 	T1CKS1    	T1CR,4
#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

;----- PWM1CR Bits ---------------------------------------------------

#define 	PWM1EC    	PWM1CR,0
#define 	PWM1NV    	PWM1CR,1
#define 	PWM1MD0   	PWM1CR,2
#define 	PWM1MD1   	PWM1CR,3

;----- T2CR Bits ---------------------------------------------------

#define 	T2PRS0    	T2CR,0
#define 	T2PRS1    	T2CR,1
#define 	T2PRS2    	T2CR,2
#define 	T2CKS0    	T2CR,3
#define 	T2CKS1    	T2CR,4
#define 	T2EN      	T2CR,7

;----- T2CNT Bits ---------------------------------------------------

#define 	T2CNT0    	T2CNT,0
#define 	T2CNT1    	T2CNT,1
#define 	T2CNT2    	T2CNT,2
#define 	T2CNT3    	T2CNT,3
#define 	T2CNT4    	T2CNT,4
#define 	T2CNT5    	T2CNT,5
#define 	T2CNT6    	T2CNT,6
#define 	T2CNT7    	T2CNT,7

;----- T2LOAD Bits ---------------------------------------------------

#define 	T2LOAD0   	T2LOAD,0
#define 	T2LOAD1   	T2LOAD,1
#define 	T2LOAD2   	T2LOAD,2
#define 	T2LOAD3   	T2LOAD,3
#define 	T2LOAD4   	T2LOAD,4
#define 	T2LOAD5   	T2LOAD,5
#define 	T2LOAD6   	T2LOAD,6
#define 	T2LOAD7   	T2LOAD,7

;----- T2DATA Bits ---------------------------------------------------

#define 	T2DATA0   	T2DATA,0
#define 	T2DATA1   	T2DATA,1
#define 	T2DATA2   	T2DATA,2
#define 	T2DATA3   	T2DATA,3
#define 	T2DATA4   	T2DATA,4
#define 	T2DATA5   	T2DATA,5
#define 	T2DATA6   	T2DATA,6
#define 	T2DATA7   	T2DATA,7

;----- T2DATB Bits ---------------------------------------------------

#define 	T2DATB0   	T2DATB,0
#define 	T2DATB1   	T2DATB,1
#define 	T2DATB2   	T2DATB,2
#define 	T2DATB3   	T2DATB,3
#define 	T2DATB4   	T2DATB,4
#define 	T2DATB5   	T2DATB,5
#define 	T2DATB6   	T2DATB,6
#define 	T2DATB7   	T2DATB,7

;----- PWM2CR Bits ---------------------------------------------------

#define 	PWM2AEC   	PWM2CR,0
#define 	PWM2ANV   	PWM2CR,1
#define 	PWM2BEC   	PWM2CR,2
#define 	PWM2BNV   	PWM2CR,3

;----- T3CR Bits ---------------------------------------------------

#define 	T3PRS0    	T3CR,0
#define 	T3PRS1    	T3CR,1
#define 	T3PRS2    	T3CR,2
#define 	T3CKS0    	T3CR,3
#define 	T3CKS1    	T3CR,4
#define 	T3OS0     	T3CR,5
#define 	T3OS1     	T3CR,6
#define 	T3EN      	T3CR,7

;----- T3CNTH Bits ---------------------------------------------------

#define 	T3CNT8    	T3CNTH,0
#define 	T3CNT9    	T3CNTH,1
#define 	T3CNT10   	T3CNTH,2
#define 	T3CNT11   	T3CNTH,3
#define 	T3CNT12   	T3CNTH,4
#define 	T3CNT13   	T3CNTH,5
#define 	T3CNT14   	T3CNTH,6
#define 	T3CNT15   	T3CNTH,7

;----- T3CNTL Bits ---------------------------------------------------

#define 	T3CNT0    	T3CNTL,0
#define 	T3CNT1    	T3CNTL,1
#define 	T3CNT2    	T3CNTL,2
#define 	T3CNT3    	T3CNTL,3
#define 	T3CNT4    	T3CNTL,4
#define 	T3CNT5    	T3CNTL,5
#define 	T3CNT6    	T3CNTL,6
#define 	T3CNT7    	T3CNTL,7

;----- T3LOADH Bits ---------------------------------------------------

#define 	T3LOAD8   	T3LOADH,0
#define 	T3LOAD9   	T3LOADH,1
#define 	T3LOAD10  	T3LOADH,2
#define 	T3LOAD11  	T3LOADH,3
#define 	T3LOAD12  	T3LOADH,4
#define 	T3LOAD13  	T3LOADH,5
#define 	T3LOAD14  	T3LOADH,6
#define 	T3LOAD15  	T3LOADH,7

;----- T3LOADL Bits ---------------------------------------------------

#define 	T3LOAD0   	T3LOADL,0
#define 	T3LOAD1   	T3LOADL,1
#define 	T3LOAD2   	T3LOADL,2
#define 	T3LOAD3   	T3LOADL,3
#define 	T3LOAD4   	T3LOADL,4
#define 	T3LOAD5   	T3LOADL,5
#define 	T3LOAD6   	T3LOADL,6
#define 	T3LOAD7   	T3LOADL,7

;----- P2ADCR Bits ---------------------------------------------------

#define 	P22DC     	P2ADCR,2

;----- P3ADCR Bits ---------------------------------------------------

#define 	P30DC     	P3ADCR,0

;----- DKSCR Bits ---------------------------------------------------

#define 	DKLCD     	DKSCR,5
#define 	DKSSCM    	DKSCR,6
#define 	DKSEN     	DKSCR,7

;----- P0DKCR Bits ---------------------------------------------------

#define 	P00KSE    	P0DKCR,0
#define 	P01KSE    	P0DKCR,1
#define 	P02KSE    	P0DKCR,2
#define 	P03KSE    	P0DKCR,3
#define 	P04KSE    	P0DKCR,4
#define 	P05KSE    	P0DKCR,5
#define 	P06KSE    	P0DKCR,6
#define 	P07KSE    	P0DKCR,7

;----- P1DKCR Bits ---------------------------------------------------

#define 	P10KSE    	P1DKCR,0
#define 	P11KSE    	P1DKCR,1
#define 	P12KSE    	P1DKCR,2
#define 	P13KSE    	P1DKCR,3
#define 	P14KSE    	P1DKCR,4
#define 	P15KSE    	P1DKCR,5
#define 	P16KSE    	P1DKCR,6
#define 	P17KSE    	P1DKCR,7

;----- P2DKCR Bits ---------------------------------------------------

#define 	P20KSE    	P2DKCR,0
#define 	P21KSE    	P2DKCR,1
#define 	P22KSE    	P2DKCR,2
#define 	P23KSE    	P2DKCR,3
#define 	P24KSE    	P2DKCR,4
#define 	P25KSE    	P2DKCR,5
#define 	P26KSE    	P2DKCR,6
#define 	P27KSE    	P2DKCR,7

;----- P3DKCR Bits ---------------------------------------------------

#define 	P30KSE    	P3DKCR,0

;----- XTALCR Bits ---------------------------------------------------

#define 	XTVS0     	XTALCR,0
#define 	XTVS1     	XTALCR,1
#define 	XTSPD     	XTALCR,2
#define 	XTREN     	XTALCR,3

;----- XTICCAL Bits ---------------------------------------------------

#define 	XTICCAL0  	XTICCAL,0
#define 	XTICCAL1  	XTICCAL,1
#define 	XTICCAL2  	XTICCAL,2
#define 	XTICCAL3  	XTICCAL,3
#define 	XTICCAL4  	XTICCAL,4
#define 	XTICCAL5  	XTICCAL,5
#define 	XTICCAL6  	XTICCAL,6
#define 	XTICCAL7  	XTICCAL,7

;----- LCDCR0 Bits ---------------------------------------------------

#define 	LCDCT0    	LCDCR0,0
#define 	LCDCT1    	LCDCR0,1
#define 	LCDCT2    	LCDCR0,2
#define 	LCDCT3    	LCDCR0,3
#define 	LCDTYP    	LCDCR0,4
#define 	LCDFS     	LCDCR0,5
#define 	LCDMD     	LCDCR0,6
#define 	LCDEN     	LCDCR0,7

;----- LCDCR1 Bits ---------------------------------------------------

#define 	P15CE     	LCDCR1,0
#define 	P16CE     	LCDCR1,1

;----- P0LCDCR Bits ---------------------------------------------------

#define 	P00LCDE   	P0LCDCR,0
#define 	P01LCDE   	P0LCDCR,1
#define 	P02LCDE   	P0LCDCR,2
#define 	P03LCDE   	P0LCDCR,3
#define 	P04LCDE   	P0LCDCR,4
#define 	P05LCDE   	P0LCDCR,5
#define 	P06LCDE   	P0LCDCR,6
#define 	P07LCDE   	P0LCDCR,7

;----- P1LCDCR Bits ---------------------------------------------------

#define 	P10LCDE   	P1LCDCR,0
#define 	P11LCDE   	P1LCDCR,1
#define 	P12LCDE   	P1LCDCR,2
#define 	P13LCDE   	P1LCDCR,3
#define 	P14LCDE   	P1LCDCR,4
#define 	P15LCDE   	P1LCDCR,5
#define 	P16LCDE   	P1LCDCR,6
#define 	P17LCDE   	P1LCDCR,7

;----- P2LCDCR Bits ---------------------------------------------------

#define 	P20LCDE   	P2LCDCR,0
#define 	P21LCDE   	P2LCDCR,1
#define 	P22LCDE   	P2LCDCR,2
#define 	P23LCDE   	P2LCDCR,3
#define 	P24LCDE   	P2LCDCR,4
#define 	P25LCDE   	P2LCDCR,5
#define 	P26LCDE   	P2LCDCR,6
#define 	P27LCDE   	P2LCDCR,7

;----- HIRCCAL Bits ---------------------------------------------------

#define 	HIRCCAL0  	HIRCCAL,0
#define 	HIRCCAL1  	HIRCCAL,1
#define 	HIRCCAL2  	HIRCCAL,2
#define 	HIRCCAL3  	HIRCCAL,3
#define 	HIRCCAL4  	HIRCCAL,4
#define 	HIRCCAL5  	HIRCCAL,5
#define 	HIRCCAL6  	HIRCCAL,6
#define 	HIRCCAL7  	HIRCCAL,7

;----- LIRCCAL Bits ---------------------------------------------------

#define 	LIRCCAL0  	LIRCCAL,0
#define 	LIRCCAL1  	LIRCCAL,1
#define 	LIRCCAL2  	LIRCCAL,2
#define 	LIRCCAL3  	LIRCCAL,3
#define 	LIRCCAL4  	LIRCCAL,4
#define 	LIRCCAL5  	LIRCCAL,5
#define 	LIRCCAL6  	LIRCCAL,6
#define 	LIRCCAL7  	LIRCCAL,7

;----- IICCR0 Bits ---------------------------------------------------

#define 	MRDAT     	IICCR0,0
#define 	MTDAT     	IICCR0,1
#define 	MTSTP     	IICCR0,2
#define 	MTSAA     	IICCR0,3
#define 	ACKTS     	IICCR0,4
#define 	IICSPD    	IICCR0,5
#define 	IICMD     	IICCR0,6
#define 	IICEN     	IICCR0,7

;----- IICCR1 Bits ---------------------------------------------------

#define 	BSTPF     	IICCR1,0
#define 	ACKRF     	IICCR1,1
#define 	SDEDF     	IICCR1,2
#define 	SCMDF     	IICCR1,3
#define 	SADMF     	IICCR1,4
#define 	BSTRF     	IICCR1,5
#define 	BABER     	IICCR1,6

;----- IICCR2 Bits ---------------------------------------------------

#define 	IICRUS    	IICCR2,0
#define 	IICCHS    	IICCR2,1
#define 	IICSYN    	IICCR2,2

;----- IICDR Bits ---------------------------------------------------

#define 	IICD0     	IICDR,0
#define 	IICD1     	IICDR,1
#define 	IICD2     	IICDR,2
#define 	IICD3     	IICDR,3
#define 	IICD4     	IICDR,4
#define 	IICD5     	IICDR,5
#define 	IICD6     	IICDR,6
#define 	IICD7     	IICDR,7

;----- IICAR Bits ---------------------------------------------------

#define 	IICWR     	IICAR,0
#define 	IICA0     	IICAR,1
#define 	IICA1     	IICAR,2
#define 	IICA2     	IICAR,3
#define 	IICA3     	IICAR,4
#define 	IICA4     	IICAR,5
#define 	IICA5     	IICAR,6
#define 	IICA6     	IICAR,7

;----- IICAAR Bits ---------------------------------------------------

#define 	IICAA0    	IICAAR,1
#define 	IICAA1    	IICAAR,2
#define 	IICAA2    	IICAAR,3
#define 	IICAA3    	IICAAR,4
#define 	IICAA4    	IICAAR,5
#define 	IICAA5    	IICAAR,6
#define 	IICAA6    	IICAAR,7

;----- IICAMR Bits ---------------------------------------------------

#define 	IICABE    	IICAMR,0
#define 	IICAM0    	IICAMR,1
#define 	IICAM1    	IICAMR,2
#define 	IICAM2    	IICAMR,3
#define 	IICAM3    	IICAMR,4
#define 	IICAM4    	IICAMR,5
#define 	IICAM5    	IICAMR,6
#define 	IICAM6    	IICAMR,7

;----- URTCR0 Bits ---------------------------------------------------

#define 	UPRS0     	URTCR0,0
#define 	UPRS1     	URTCR0,1
#define 	UPRS2     	URTCR0,2
#define 	UPMD      	URTCR0,4
#define 	UPEN      	URTCR0,5
#define 	UREN      	URTCR0,6
#define 	URTEN     	URTCR0,7

;----- URTCR1 Bits ---------------------------------------------------

#define 	USTPF     	URTCR1,0
#define 	TXB8      	URTCR1,1
#define 	UDATF     	URTCR1,2
#define 	UAEN      	URTCR1,3

;----- URTCR2 Bits ---------------------------------------------------

#define 	URTMOD    	URTCR2,0
#define 	URTPTS    	URTCR2,1
#define 	URTCHS    	URTCR2,2
#define 	URTLNV    	URTCR2,3

;----- URTSR Bits ---------------------------------------------------

#define 	RXB8      	URTSR,0
#define 	PERR      	URTSR,1
#define 	TCOL      	URTSR,2
#define 	ROVF      	URTSR,3
#define 	FERR      	URTSR,4

;----- URTBR Bits ---------------------------------------------------

#define 	URTB0     	URTBR,0
#define 	URTB1     	URTBR,1
#define 	URTB2     	URTBR,2
#define 	URTB3     	URTBR,3
#define 	URTB4     	URTBR,4
#define 	URTB5     	URTBR,5
#define 	URTB6     	URTBR,6
#define 	URTB7     	URTBR,7

;----- URTDR Bits ---------------------------------------------------

#define 	URTD0     	URTDR,0
#define 	URTD1     	URTDR,1
#define 	URTD2     	URTDR,2
#define 	URTD3     	URTDR,3
#define 	URTD4     	URTDR,4
#define 	URTD5     	URTDR,5
#define 	URTD6     	URTDR,6
#define 	URTD7     	URTDR,7

;----- URTAR Bits ---------------------------------------------------

#define 	URTA0     	URTAR,0
#define 	URTA1     	URTAR,1
#define 	URTA2     	URTAR,2
#define 	URTA3     	URTAR,3
#define 	URTA4     	URTAR,4
#define 	URTA5     	URTAR,5
#define 	URTA6     	URTAR,6
#define 	URTA7     	URTAR,7

;----- URTMR Bits ---------------------------------------------------

#define 	URTM0     	URTMR,0
#define 	URTM1     	URTMR,1
#define 	URTM2     	URTMR,2
#define 	URTM3     	URTMR,3
#define 	URTM4     	URTMR,4
#define 	URTM5     	URTMR,5
#define 	URTM6     	URTMR,6
#define 	URTM7     	URTMR,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
