mirror of
https://github.com/antoinevignau/source.git
synced 2024-09-01 19:29:13 +00:00
149 lines
2.1 KiB
ArmAsm
149 lines
2.1 KiB
ArmAsm
|
|
* TFBD generated equates
|
|
* (c) PHC 1992,93
|
|
|
|
*
|
|
* Firmware
|
|
*
|
|
|
|
CH = $24
|
|
CV = CH+1
|
|
COLOR = $E4
|
|
|
|
SOFTEV = $03F2
|
|
PWREDUP = $03F4
|
|
USRADR = $03F8
|
|
IRQLOC = $03FE
|
|
MSLOT = $07F8
|
|
|
|
*
|
|
* Zero page usage
|
|
*
|
|
|
|
LOOPFLG = $0F
|
|
DRAM = LOOPFLG+1 ; $10
|
|
SCRATCH = DRAM+1 ; $11
|
|
ROMCTRL = SCRATCH+2 ; $13
|
|
POINTER = $60
|
|
SIZE = POINTER+2 ; $62
|
|
YTEMP = SIZE+1 ; $63
|
|
COUNTER = YTEMP+1 ; $64
|
|
DATA = COUNTER+1 ; $65
|
|
LAT = DATA+1 ; $66
|
|
LEN = LAT+1 ; $67
|
|
GAP = LEN+1 ; $68
|
|
LONG = GAP+1 ; $69
|
|
NEXTV = LONG+1 ; $6A
|
|
ERRPTR = NEXTV+1 ; $6B
|
|
ROMFLG = $F0
|
|
CPUFLG = ROMFLG+1 ; $F1
|
|
RAMFLG = CPUFLG+1 ; $F2
|
|
|
|
*
|
|
* Addresses for relocation and test usage
|
|
*
|
|
|
|
L0000 = $0000
|
|
L0100 = $0100
|
|
L0200 = $0200
|
|
L0400 = $0400
|
|
L0800 = L0400+$0400
|
|
L0AD0 = $0AD0
|
|
L0C00 = L0800+$0400
|
|
L2000 = $2000
|
|
L4000 = L2000+$2000
|
|
L6000 = L4000+$2000
|
|
|
|
BEGIN = $0200
|
|
FIRST = $0200
|
|
OFFSET = $6000
|
|
|
|
L7237 = $7237
|
|
L849B = $849B
|
|
L8720 = $8720
|
|
|
|
*
|
|
* Softswitches (from the diag pov)
|
|
*
|
|
|
|
MMUADR = $C011
|
|
IOUADDR = $C01A
|
|
CXCHKSUM = $C400
|
|
|
|
*
|
|
* Softswitches
|
|
*
|
|
|
|
KBD EQU $C000
|
|
SET80COL EQU $C001
|
|
WRMAINRAM EQU $C004
|
|
WRCARDRAM EQU $C005
|
|
SETSLOTCXROM EQU $C006
|
|
SETINTCXROM EQU $C007
|
|
SETSTDZP EQU $C008
|
|
SETALTZP EQU $C009
|
|
SETINTC3ROM EQU $C00A
|
|
SETSLOTC3ROM EQU $C00B
|
|
CLR80VID EQU $C00C
|
|
SET80VID EQU $C00D
|
|
CLRALTCHAR EQU $C00E
|
|
SETALTCHAR EQU $C00F
|
|
KBDSTROBE EQU $C010
|
|
RDLCBNK2 EQU $C011
|
|
RDLCRAM EQU $C012
|
|
RDRAMWRT EQU $C014
|
|
RDALTZP EQU $C016
|
|
RDC3ROM EQU $C017
|
|
RD80COL EQU $C018
|
|
RDTEXT EQU $C01A
|
|
RDMIX EQU $C01B
|
|
RDPAGE2 EQU $C01C
|
|
RDHIRES EQU $C01D
|
|
ALTCHARSET EQU $C01E
|
|
RD80VID EQU $C01F
|
|
SPKR EQU $C030
|
|
TXTCLR EQU $C050
|
|
TXTSET EQU $C051
|
|
MIXCLR EQU $C052
|
|
MIXSET EQU $C053
|
|
TXTPAGE1 EQU $C054
|
|
TXTPAGE2 EQU $C055
|
|
LORES EQU $C056
|
|
HIRES EQU $C057
|
|
SETAN0 EQU $C058
|
|
SETAN1 EQU $C05A
|
|
CLRAN2 EQU $C05D
|
|
CLRAN3 EQU $C05F
|
|
BUTN3 EQU $C060
|
|
BUTN0 EQU $C061
|
|
BUTN1 EQU $C062
|
|
PTRIG EQU $C070
|
|
RDBANK2 EQU $C080
|
|
ROMIN2 EQU $C081
|
|
RDROM2 EQU $C082
|
|
LCBANK2 EQU $C083
|
|
LCBANK1 EQU $C08B
|
|
|
|
LC000 = $C000
|
|
LC100 = $C100
|
|
LC200 = $C200
|
|
LC300 = $C300
|
|
LC400 = $C400
|
|
LC500 = $C500
|
|
LC600 = $C600
|
|
LC700 = $C700
|
|
CLRROM = $CFFF
|
|
LD000 = $D000
|
|
|
|
*
|
|
* ROM calls (replaced)
|
|
*
|
|
|
|
*SETGR EQU $FB40
|
|
*HOME EQU $FC58
|
|
*WAIT EQU $FCA8
|
|
*PRBYTE EQU $FDDA
|
|
*COUT EQU $FDED
|
|
*BELL EQU $FF3A
|
|
*MONZ EQU $FF69
|