2001-09-13 21:09:19 +00:00
|
|
|
;
|
|
|
|
; Zero page variables for the CBM P500
|
|
|
|
;
|
|
|
|
; Taken from a kernal disassembly done by myself in 2000/2001.
|
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 13.09.2001
|
|
|
|
|
|
|
|
|
|
|
|
ExecReg = $0000
|
|
|
|
IndReg = $0001
|
|
|
|
|
|
|
|
; Up to $20 and $60-8F used by runtime and fixed values
|
|
|
|
; -----------------------------------
|
|
|
|
|
|
|
|
KbdScanBuf = $20 ; Intermediate for keyboard scan
|
|
|
|
; RS232 stuff
|
|
|
|
RecvHead = $21 ; Head of receive buffer
|
|
|
|
RecvTail = $22 ; Tail of receive buffer
|
|
|
|
RecvFreeCnt = $23 ; Number of bytes in receive buffer
|
|
|
|
SendHead = $24 ; Head of send buffer
|
|
|
|
SendTail = $25 ; Tail of send buffer
|
|
|
|
SendFreeCnt = $26 ; Number of bytes free in send buffer
|
|
|
|
|
|
|
|
FileNameAdrLo = $90
|
|
|
|
FileNameAdrHi = $91
|
|
|
|
FileNameAdrSeg = $92
|
|
|
|
SaveAdrLow = $93
|
|
|
|
SaveAdrHi = $94
|
|
|
|
SaveAdrSeg = $95
|
|
|
|
EndAdrLow = $96
|
|
|
|
EndAdrHi = $97
|
|
|
|
EndAdrSeg = $98
|
|
|
|
StartAdrLow = $99
|
|
|
|
StartAdrHi = $9A
|
|
|
|
StartAdrSeg = $9B
|
|
|
|
Status = $9C
|
|
|
|
FileNameLen = $9D
|
|
|
|
LogicalAdr = $9E
|
|
|
|
FirstAdr = $9F
|
|
|
|
SecondAdr = $A0
|
|
|
|
DefInpDev = $A1
|
|
|
|
DefOutDev = $A2
|
|
|
|
TapeBufPtr = $A3
|
|
|
|
TapeBufPtrSeg = $A5
|
|
|
|
rs232BufPtr = $A6
|
|
|
|
rs232BufPtrSeg = $A8
|
|
|
|
StopKeyFlag = $A9
|
|
|
|
CTemp = $AA
|
|
|
|
snsw1 = $AB
|
|
|
|
SegChgPtr = $AC
|
|
|
|
PChighSave = $AE
|
|
|
|
PClowSave = $AF
|
|
|
|
SRSave = $B0
|
|
|
|
ACSave = $B1
|
|
|
|
XRSave = $B2
|
|
|
|
YRSave = $B3
|
|
|
|
SPSave = $B4
|
|
|
|
IndSegSave = $B5
|
|
|
|
IRQSaveHi = $B7
|
|
|
|
IRQSaveLo = $B8
|
|
|
|
Adr1 = $B9
|
|
|
|
Adr2 = $BB
|
|
|
|
MoniCntr = $BD
|
|
|
|
MoniTmp = $BE
|
|
|
|
MoniDevNr = $BF
|
|
|
|
PgmKeyBuf = $C0
|
|
|
|
PgmKeyPtr = $C2
|
|
|
|
sedsal = $C4
|
|
|
|
sedeal = $C6
|
2001-09-14 14:37:08 +00:00
|
|
|
SCREEN_PTR = $C8
|
2001-09-13 21:09:19 +00:00
|
|
|
CURS_Y = $CA
|
|
|
|
CURS_X = $CB
|
|
|
|
GrafMode = $CC
|
|
|
|
LastIndex = $CD
|
|
|
|
LastLine = $CE
|
|
|
|
LastCol = $CF
|
|
|
|
crsw = $D0
|
|
|
|
KeyIndex = $D1
|
|
|
|
QuoteSw = $D2
|
|
|
|
Insrt = $D3
|
|
|
|
Config = $D4
|
|
|
|
LastLinePos = $D5
|
|
|
|
PgmKeyIndex = $D6
|
|
|
|
RepeatCount = $D7
|
|
|
|
RepeatDelay = $D8
|
|
|
|
sedt1 = $D9 ; Temp
|
|
|
|
sedt2 = $DA ; Temp, frequently used
|
|
|
|
PrtData = $DB
|
|
|
|
ScreenTop = $DC
|
|
|
|
ScreenBot = $DD
|
|
|
|
ScreenLeft = $DE
|
|
|
|
ScreenRight = $DF
|
|
|
|
ModKey = $E0
|
|
|
|
NorKey = $E1
|
|
|
|
BitTable = $E2
|
2001-09-18 12:23:28 +00:00
|
|
|
CURS_FLAG = $E6 ; 1 = no cursor
|
|
|
|
CURS_BLINK = $E7 ; cursor blink counter
|
2001-09-14 14:37:08 +00:00
|
|
|
CRAM_PTR = $E8
|
2001-09-13 21:09:19 +00:00
|
|
|
TempColor = $EA
|
2001-09-18 12:23:28 +00:00
|
|
|
CURS_STATE = $EB ; Cursor blink state
|
2001-09-13 21:37:59 +00:00
|
|
|
CHARCOLOR = $EC
|
2001-09-18 12:23:28 +00:00
|
|
|
CURS_COLOR = $ED ; Color behind cursor
|
2001-09-13 21:09:19 +00:00
|
|
|
OutCharTmp = $EE
|
|
|
|
ScreenSeq = $EF ; Segment of video RAM
|
|
|
|
|