mirror of
https://github.com/A2osX/A2osX.git
synced 2024-10-29 10:27:05 +00:00
451 lines
7.9 KiB
Plaintext
451 lines
7.9 KiB
Plaintext
PR#3
|
||
PREFIX /A2OSX.BUILD
|
||
LOMEM $A00
|
||
INC 1
|
||
AUTO 6
|
||
*--------------------------------------
|
||
* $E000-E0FF K.SYSCALL.JMP Jmp Table
|
||
*--------------------------------------
|
||
* Bank 1
|
||
*--------------------------------------
|
||
K.SYSCALL.JMP .DA 0 $00
|
||
.DA 0
|
||
.DA K.Stat
|
||
.DA K.MKDir.YA
|
||
.DA K.MKNod.YA
|
||
.DA K.MKFIFO
|
||
.DA 0
|
||
.DA 0
|
||
|
||
.DA K.OpenDir.YA $10
|
||
.DA K.ReadDir.A
|
||
.DA K.CloseDir.A
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
|
||
.DA K.FPutC.AY $20
|
||
.DA K.PutChar.A
|
||
.DA K.GetC.A
|
||
.DA K.GetChar
|
||
.DA K.FPutS
|
||
.DA K.PutS.YA
|
||
.DA K.FGetS
|
||
.DA K.GetS.YA
|
||
|
||
.DA K.FOpen $30
|
||
.DA K.FClose.A
|
||
.DA K.FRead
|
||
.DA K.FWrite
|
||
.DA K.FFlush.A
|
||
.DA K.FSeek
|
||
.DA K.FTell
|
||
.DA K.FEOF.A
|
||
|
||
.DA K.Remove.YA $40
|
||
.DA K.Rename
|
||
.DA 0
|
||
.DA 0
|
||
.DA K.GetDevByID.A
|
||
.DA K.GetDevByName.YA
|
||
.DA 0
|
||
.DA 0
|
||
|
||
.DA 0 $50
|
||
.DA K.SScanF
|
||
.DA 0
|
||
.DA 0
|
||
.DA K.PrintF.YA
|
||
.DA K.SPrintF.YA
|
||
.DA K.FPrintF.YA
|
||
.DA 0
|
||
|
||
.DA 0 $60
|
||
.DA 0
|
||
.DA K.LoadFile
|
||
.DA K.LoadTxtFile.YA
|
||
.DA K.ChTyp
|
||
.DA K.ChMod
|
||
.DA K.ChOwn
|
||
.DA K.ChGrp
|
||
|
||
.DA K.AToF $70
|
||
.DA K.AToI.YA
|
||
.DA K.AToL
|
||
.DA K.StrToF
|
||
.DA K.StrToL
|
||
.DA 0
|
||
.DA K.RealPath.YA
|
||
.DA 0
|
||
*--------------------------------------
|
||
* Bank 2
|
||
*--------------------------------------
|
||
.DA K.StrLen.YA $80
|
||
.DA K.StrCpy
|
||
.DA K.StrCat
|
||
.DA K.StrMatch
|
||
.DA K.StrUpr.YA
|
||
.DA K.StrLwr.YA
|
||
.DA K.StrFTime
|
||
.DA 0
|
||
|
||
.DA K.Time.YA $90
|
||
.DA K.CTime2Time
|
||
.DA K.PTime2Time
|
||
.DA 0
|
||
.DA K.LoadLib.YA
|
||
.DA K.UnloadLib.A
|
||
.DA K.LoadDrv.YA
|
||
.DA K.FileSearch
|
||
|
||
.DA K.ExecPSNewEnv.YA $A0
|
||
.DA K.ExecPS.YA
|
||
.DA K.CreatePSNewEnv.YA
|
||
.DA K.CreatePS.YA
|
||
.DA 0
|
||
.DA 0
|
||
.DA K.GetPSStatus.A
|
||
.DA K.GetPSList.YA
|
||
|
||
.DA 0 $B0
|
||
.DA K.GetArg.A
|
||
.DA K.ExpandStr.YA
|
||
.DA 0
|
||
.DA K.PutEnv.YA
|
||
.DA K.SetEnv
|
||
.DA K.GetEnv.YA
|
||
.DA K.UnsetEnv.YA
|
||
|
||
.DA K.FAdd $C0
|
||
.DA K.FSub
|
||
.DA K.FMult
|
||
.DA K.FDiv
|
||
.DA K.FPwr
|
||
.DA 0
|
||
.DA K.LRIntF
|
||
.DA K.Float
|
||
|
||
.DA K.Log $D0
|
||
.DA K.Sqr
|
||
.DA K.Exp
|
||
.DA K.Cos
|
||
.DA K.Sin
|
||
.DA K.Tan
|
||
.DA K.ATan
|
||
.DA 0
|
||
*--------------------------------------
|
||
* $E000
|
||
*--------------------------------------
|
||
.DA K.GetMem $E0
|
||
.DA K.FreeMem.A
|
||
.DA K.GetMemPtr.A
|
||
.DA K.GetMemByID.A
|
||
.DA K.GetMem.YA
|
||
.DA K.GetMem0.YA
|
||
.DA K.NewStr.YA
|
||
.DA K.GetMemStat.YA
|
||
*--------------------------------------
|
||
.DA 0 $F0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA K.NewStkObj.YA
|
||
.DA K.LoadStkObj
|
||
.DA K.GetStkObj.A
|
||
.DA K.FreeStkObj.A
|
||
*--------------------------------------
|
||
* LO Byte :
|
||
* #RRAMWRAMBNK1,#RRAMWRAMBNK2
|
||
* HI Byte :
|
||
* Flags (ROOT....)
|
||
*--------------------------------------
|
||
K.SYSCALL.BANK .DA #RRAMWRAMBNK1 $00
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $10
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $20
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $30
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $40
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $50
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $60
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK1 $70
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK1
|
||
.DA #$80
|
||
*--------------------------------------
|
||
.DA #RRAMWRAMBNK2 $80
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK2 $90
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK2 $A0
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK2 $B0
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK2 $C0
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
|
||
.DA #RRAMWRAMBNK2 $D0
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
.DA #RRAMWRAMBNK2
|
||
.DA #$80
|
||
*--------------------------------------
|
||
.DA 0 $E0 : MemMgr at $E000
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
*--------------------------------------
|
||
.DA 0 $F0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
.DA 0
|
||
*--------------------------------------
|
||
PullP1P2P3 sec
|
||
.HS 90 bcc
|
||
PullP1P2 clc
|
||
>PULLW ZPPtr1
|
||
>PULLW ZPPtr2
|
||
bcc .9
|
||
>PULLW ZPPtr3
|
||
.9 rts
|
||
*--------------------------------------
|
||
MAN
|
||
SAVE /A2OSX.SRC/SYS/KERNEL.S.JMP
|
||
LOAD /A2OSX.SRC/SYS/KERNEL.S
|
||
ASM
|