A2osX/INC/A2osX.I.txt

90 lines
2.4 KiB
Plaintext
Raw Normal View History

2015-03-14 21:48:35 +00:00
PR#3
2015-06-03 18:30:57 +00:00
PREFIX /A2OSX.SRC
2015-03-14 21:48:35 +00:00
NEW
INC 1
AUTO 6
.LIST OFF
*--------------------------------------
2015-06-03 18:30:57 +00:00
* Aux ZP
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
ZPQuickPtr1 .EQ $0 Temp Ptrs for use in very limited scope
ZPQuickPtr2 .EQ $2 (could be trashed by any JSR)
ZPQuickPtr3 .EQ $4
ZPQuickPtr4 .EQ $6
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
pCode .EQ $10
pData .EQ $12
pStack .EQ $14
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
pLib .EQ $16
pDev .EQ $18
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
pEvent .EQ $1A
pPs .EQ $1C
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
ZPDRV .EQ $80
ZPBIN .EQ $90
ZPLIB .EQ $A0
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
* $C0 -> $FF KERNEL RESERVED
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
A2osX.SaveSM .EQ $100 Aux
2015-03-14 21:48:35 +00:00
A2osX.SaveSX .EQ $101 Aux
*--------------------------------------
2015-06-03 18:30:57 +00:00
* Main $200 -> 2FF : (Used By ProDOS,Clock DRV....)
* Main $300 -> 3EF : <free>
* Main $3F0 -> 3FF : SYS Vectors (reset,IRQ...)
* Aux $200 -> 3FD : /RAM Driver
* Aux $3FE -> 3FF : IRQ Vector
* Main/Aux $400 -> $7FF : Console Screen
* Main/Aux $800 -> $BFF : System Screen
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
TmpBuffer256 .EQ $0200 Main
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
D.STACK.BASE .EQ $0300 $03EF...
D.STACK.TOP .EQ $03F0 ...Down to $0300
2015-03-14 21:48:35 +00:00
*--------------------------------------
* A2osX GLOBAL PAGE
2015-06-03 18:30:57 +00:00
* $BE00->$BE0F : Public Vetors
2015-03-14 21:48:35 +00:00
*--------------------------------------
A2osX.SYSCALL .EQ $BE00
2015-06-03 18:30:57 +00:00
A2osX.LIBCALL .EQ $BE02
A2osX.SLEEP .EQ $BE04
A2osX.MLICALL .EQ $BE06
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
* $BEE0->$BEFF : Public Variables
*--------------------------------------
A2osX.SCREENS .EQ $BEE0
A2osX.SCREENS.S .EQ %00000001 System Screen
A2osX.SCREENS.C .EQ %00000010 Console Screen
A2osX.SCREENS.G .EQ %00000100 Graphic Screen
A2osX.ASCREEN .EQ $BEE1 Active Screen
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
A2osX.CSCREEN.DEV .EQ $BEE2
A2osX.GSCREEN.DEV .EQ $BEE3
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
A2osX.TIMER16 .EQ $BEE4
A2osX.RANDOM16 .EQ $BEE6
2015-03-14 21:48:35 +00:00
2015-06-03 18:30:57 +00:00
A2osX.CPUTYPE .EQ $BEE8
A2osX.Z80SLOT .EQ $BEEA
2015-03-14 21:48:35 +00:00
*--------------------------------------
2015-06-03 18:30:57 +00:00
*** Z80 Reserved ***
*--------------------------------------
2015-06-03 18:30:57 +00:00
*** IRQ Handler ***
2015-03-14 21:48:35 +00:00
*--------------------------------------
* LIB Function Indexes
*--------------------------------------
LIBMGR.LOAD .EQ 0
LIBMGR.UNLOAD .EQ 2
*--------------------------------------
* Task Function Indexes
*--------------------------------------
TSKMGR.INIT .EQ 0
TSKMGR.RUN .EQ 2
TSKMGR.DOEVENT .EQ 4
TSKMGR.QUIT .EQ 6
*--------------------------------------
MAN
SAVE INC/A2OSX.I