;
; THIS FILE PREDECLARES ITEMS FREQUENTLY USED BY THE
; COP820 PROGRAMMER.
;
; THIS INCLUDES REGISTERS AND FLAGS.
;
;
	PORTLD	=   0D0 	; PORT L DATA
	PORTLC	=   0D1 	; PORT L CONFIGURATION
	PORTLP	=   0D2 	; PORT L PIN
;
	PORTGD	=   0D4 	; PORT G DATA
	PORTGC	=   0D5 	; PORT G CONFIGURATION
	PORTGP	=   0D6 	; PORT G PIN
	PORTD	=   0DC 	; PORT D
	PORTI	=   0D7 	; PORT I
;
	SIOR	=   0E9 	; SIO SHIFT REGISTER
	TMRLO	=   0EA 	; TIMER LOW BYTE
	TMRHI	=   0EB 	; TIMER HIGH BYTE
	TAULO	=   0EC 	; TIMER REGISTER LOW BYTE
	TAUHI	=   0ED 	; TIMER REGISTER HIGH BYTE
;
	CNTRL	=   0EE 	; CONTROL REGISTER
	PSW	=   0EF 	; PSW REGISTER
;
; CONSTANT DECLARE
;
	INTR	=   0
	TIO	=   3
	SO	=   4
	SK	=   5
	SI	=   6
	CKO	=   7
;
	TSEL	=   7
	CSEL	=   6
	TEDG	=   5
	TRUN	=   4
	MSEL	=   3
	IEDG	=   2
	S1	=   1
	S0	=   0
;
	HCARRY	=   7
	CARRY	=   6
	TPND	=   5
	ENTI	=   4
	IPND	=   3
	BUSY	=   2
	ENI	=   1
	GIE	=   0
	TMRINP	=   3
;
	.CHIP	820
;
	LD	SP,#02F 	 ; DEFAULT INITIALIZATION OF SP

