home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
develop
/
hc11dev
/
hcinclude
/
a8regs.i
next >
Wrap
Text File
|
1995-02-27
|
2KB
|
132 lines
* $VER: XC68Hc11A0_A1_&_A8_Registers 2.2 (28-Nov-93)
* *************************************************
* * Include : XC68Hc11A0, A1 & A8 Registers v2.1 *
* * Copyright ©1990, 1993, Richard Karlsson *
* *-----------------------------------------------*
* * During august to may: *
* * Phone: +46 13 173423 *
* * E-Mail: d93ricka@und.ida.liu.se *
* * *
* * And the rest of the year: *
* * Phone: +358 28 22441 *
* *-----------------------------------------------*
* * Set "RegBase" to the register base address of *
* * your system. *
* * *
* * Eg. "RegBase Equ $1000" *
* * *
* * Define "RegIndirect" if you mostly use the *
* * registers indirect to an index register. *
* * *
* * Eg. "Ldx #RegBase" *
* * "Ldaa PORTA,x" *
* *************************************************
ifnd RegsDefined
RegsDefined = 1
ifd RegIndirect
DefReg macro Name
\1 = RegDisp
a\1 = RegBase+RegDisp
RegDisp Set RegDisp+1
endm
DefRegW macro Name
\1 = RegDisp
a\1 = RegBase+RegDisp
\1H = RegDisp
a\1H = RegBase+RegDisp
\1L = RegDisp+1
a\1L = RegBase+RegDisp+1
RegDisp Set RegDisp+2
endm
else
DefReg macro Name
i\1 = RegDisp
\1 = RegBase+RegDisp
RegDisp Set RegDisp+1
endm
DefRegW macro Name
i\1 = RegDisp
\1 = RegBase+RegDisp
i\1H = RegDisp
\1H = RegBase+RegDisp
i\1L = RegDisp+1
\1L = RegBase+RegDisp+1
RegDisp Set RegDisp+2
endm
endc
RegDisp set 0
DefReg PORTA
RegDisp set 2
DefReg PIOC
DefReg PORTC
DefReg PORTB
DefReg PORTCL
RegDisp set 7
DefReg DDRC
DefReg PORTD
DefReg DDRD
DefReg PORTE
DefReg CFORC
DefReg OC1M
DefReg OC1D
DefRegW TCNT
DefRegW TIC1
DefRegW TIC2
DefRegW TIC3
DefRegW TOC1
DefRegW TOC2
DefRegW TOC3
DefRegW TOC4
DefRegW TOC5
DefReg TCTL1
DefReg TCTL2
DefReg TMSK1
DefReg TFLG1
DefReg TMSK2
DefReg TFLG2
DefReg PACTL
DefReg PACNT
DefReg SPCR
DefReg SPSR
DefReg SPDR
DefReg BAUD
DefReg SCCR1
DefReg SCCR2
DefReg SCSR
DefReg SCDR
DefReg ADCTL
DefReg ADR1
DefReg ADR2
DefReg ADR3
DefReg ADR4
RegDisp set $39
DefReg OPTION
DefReg COPRST
DefReg PPROG
DefReg HPRIO
DefReg INIT
DefReg TEST1
DefReg CONFIG
endc
END