.nlist
;****************************************************************************
;
; Include This File To Define The COP Registers
;
;	!!! NOTE !!!
;		Only Registers And
;		Register Bit Numbers Are Defined
;
;****************************************************************************
;
	; Set UPPER_CASE_REG Non Zero To Define Upper Case Registers
	; Set LOWER_CASE_REG Non Zero To Define Lower Case Registerss
	; Else Both Upper And Lower Case Registers Will Be Defined

	.ifeq	UPPER_CASE_REG + LOWER_CASE_REG
		UPPER_CASE_REG =: 1
		LOWER_CASE_REG =: 1
	.endif

.ifne	UPPER_CASE_REG + LOWER_CASE_REG
	.list	(!,src)
;	Supports Chips:
;		COP888EK, COP884EK
	.nlist
.endif
;
;****************************************************************************
;
	.include "regdef.mac"
	.xtnd	1		; Extended Instruction Set
	.__.CPU. =: 10		; Processor Code
;
;****************************************************************************
;

.ifne	UPPER_CASE_REG
	.list	(!,src)
;	Upper Case Register Definitions         Defined
	.nlist

	;	Name	Addr	Bit7	Bit6	Bit5	Bit4	Bit3	Bit2	Bit1	Bit0
	;	----	----	----	----	----	----	----	----	----	----
	.reg	T3LO,	0xB0,	,	,	,	,	,	,	,
	.reg	T3HI,	0xB1,	,	,	,	,	,	,	,
	.reg	T3RALO,	0xB2,	,	,	,	,	,	,	,
	.reg	T3RAHI,	0xB3,	,	,	,	,	,	,	,
	.reg	T3RBLO,	0xB4,	,	,	,	,	,	,	,
	.reg	T3RBHI,	0xB5,	,	,	,	,	,	,	,
	.reg	T3CNTRL,0xB6,	T3C3,	T3C2,	T3C1,	T3C0,	T3PNDA,	T3ENA,	T3PNDB,	T3ENB
	;
	.reg	CMPSL,	0xB7,	CMPT2B,	CMPISEL2, CMPISEL1, CMPISEL0,	CMPCE,	CSEN,	CMPEN,	CMPNEG
	;
	.reg	T2LO,	0xC0,	,	,	,	,	,	,	,
	.reg	T2HI,	0xC1,	,	,	,	,	,	,	,
	.reg	T2RALO,	0xC2,	,	,	,	,	,	,	,
	.reg	T2RAHI,	0xC3,	,	,	,	,	,	,	,
	.reg	T2RBLO,	0xC4,	,	,	,	,	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,	,	,	,	,
	.reg	TMR1HI,	0xEB,	,	,	,	,	,	,	,
	.reg	T1RALO,	0xEC,	,	,	,	,	,	,	,
	.reg	T1RAHI,	0xED,	,	,	,	,	,	,	,
	;
	.reg	CNTRL,	0xEE,	T1C3,	T1C2,	T1C1,	T1C0,	MSEL,	IEDG,	SL1,	SL0
	.reg	PSW,	0xEF,	HC,	C,	T1PNDA,	T1ENA,	EXPND,	BUSY,	EXEN,	GIE
.endif
;
;****************************************************************************
;
.ifne	LOWER_CASE_REG
	.list	(!,src)
;	Lower Case Register Definitions         Defined
	.nlist

	;	Name	Addr	Bit0	Bit1	Bit2	Bit3	Bit4	Bit5	Bit6	Bit7
	;	----	----	----	----	----	----	----	----	----	----
	.reg	t3lo,	0xb0,	,	,	,	,	,	,	,
	.reg	t3hi,	0xb1,	,	,	,	,	,	,	,
	.reg	t3ralo,	0xb2,	,	,	,	,	,	,	,
	.reg	t3rahi,	0xb3,	,	,	,	,	,	,	,
	.reg	t3rblo,	0xb4,	,	,	,	,	,	,	,
	.reg	t3rbhi,	0xb5,	,	,	,	,	,	,	,
	.reg	t3cntrl,0xb6,	t3c3,	t3c2,	t3c1,	t3c0,	t3pnda,	t3ena,	t3pndb,	t3enb
	;
	.reg	cmpsl,	0xb7,	cmpt2b,	cmpisel2, cmpisel1, cmpisel0,	cmpce,	csen,	cmpen,	cmpneg
	;
	.reg	t2lo,	0xc0,	,	,	,	,	,	,	,
	.reg	t2hi,	0xc1,	,	,	,	,	,	,	,
	.reg	t2ralo,	0xc2,	,	,	,	,	,	,	,
	.reg	t2rahi,	0xc3,	,	,	,	,	,	,	,
	.reg	t2rblo,	0xc4,	,	,	,	,	,	,	,
	.reg	t2rbhi,	0xc5,	,	,	,	,	,	,	,
	.reg	t2cntrl,0xc6,	t2c3,	t2c2,	t2c1,	t2c0,	t2pnda,	t2ena,	t2pndb,	t2enb
	.reg	wdsvr,	0xc7,	,	,	,	,	,	,	,
	.reg	wkedg,	0xc8,	,	,	,	,	,	,	,
	.reg	wken,	0xc9,	,	,	,	,	,	,	,
	.reg	wkpnd,	0xca,	,	,	,	,	,	,	,
	;
	.reg	miwu,	0xd0	,	,	,	,	,	,	,
	.reg	portld,	0xd0,	t3b,	t3a,	t2b,	t2a,	,	,	,
	.reg	portlc,	0xd1,	,	,	,	,	,	,	,
	.reg	portlp,	0xd2,	,	,	,	,	,	,	,
	;		0xd3
	.reg	portgd,	0xd4,	cko,	si,	sk,	so,	t1a,	t1b,	wdout,	int
	.reg	portgd,	0xd4,	halt,	idle,	,	,	,	,	,
	.reg	portgd,	0xd4, restart,	,	,	,	,	,	,
	;
	.reg	portgc,	0xd5,	,	,	,	,	,	,	,
	.reg	portgp,	0xd6,	,	,	,	,	,	,	,
	.reg	porti,	0xd7,	compout, compin5p, compin4p, cmpin3p, cmpin2p, cmpin0p, cmpinm, cmp1inp
	.reg	porti,	0xd7,	,	,	,	,	altout,	,	curout,
	.reg	portcd,	0xd8,	,	,	,	,	,	,	,
	.reg	portcc,	0xd9,	,	,	,	,	,	,	,
	.reg	portcp,	0xda,	,	,	,	,	,	,	,
	;		0xdb
	.reg	portd,	0xdc,	,	,	,	,	,	,	,
	;
	.reg	t1rblo,	0xe6,	,	,	,	,	,	,	,
	.reg	t1rbhi,	0xe7,	,	,	,	,	,	,	,
	.reg	icntrl,	0xe8,	,	lpen,	t0pnd,	t0en,	uwpnd,	uwen,	t1pndb,	t1enb
	.reg	sior,	0xe9,	,	,	,	,	,	,	,
	.reg	tmr1lo,	0xea,	,	,	,	,	,	,	,
	.reg	tmr1hi,	0xeb,	,	,	,	,	,	,	,
	.reg	t1ralo,	0xec,	,	,	,	,	,	,	,
	.reg	t1rahi,	0xed,	,	,	,	,	,	,	,
	;
	.reg	cntrl,	0xee,	t1c3,	t1c2,	t1c1,	t1c0,	msel,	iedg,	sl1,	sl0
	.reg	psw,	0xef,	hc,	c,	t1pnda,	t1ena,	expnd,	busy,	exen,	gie
.endif

