2016-06-07 06:10:18 +00:00
|
|
|
|
PR#3
|
|
|
|
|
PREFIX /A2OSX.SRC
|
|
|
|
|
NEW
|
|
|
|
|
INC 1
|
|
|
|
|
AUTO 6
|
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
2016-06-23 15:56:13 +00:00
|
|
|
|
* $D000-D0FF KERNEL.SYSCALL Jmp Table
|
2016-06-07 06:10:18 +00:00
|
|
|
|
*--------------------------------------
|
2016-09-27 15:51:59 +00:00
|
|
|
|
KERNEL.SYSCALL
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Bank 1
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.FileSearch $00
|
|
|
|
|
.DA K.GetFullPathYA
|
|
|
|
|
.DA K.LoadFile
|
|
|
|
|
.DA K.SaveFile
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA K.LoadDrvYA $10
|
|
|
|
|
.DA K.LoadLibYA
|
|
|
|
|
.DA K.UnloadLibA
|
|
|
|
|
.DA K.LoadExeYA
|
|
|
|
|
.DA K.TimeYA
|
|
|
|
|
.DA K.CTime2Time
|
|
|
|
|
.DA K.PTime2Time
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA K.FOPEN $20
|
|
|
|
|
.DA K.FCLOSEA
|
|
|
|
|
.DA K.FREAD
|
|
|
|
|
.DA K.FWRITE
|
|
|
|
|
.DA K.FFLUSHA
|
|
|
|
|
.DA K.FSEEK
|
|
|
|
|
.DA K.FTELLA
|
|
|
|
|
.DA K.FEOFA
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA K.REMOVEYA $30
|
|
|
|
|
.DA K.RENAME
|
|
|
|
|
.DA K.STAT
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA K.OPENDIRYA
|
|
|
|
|
.DA K.READDIRA
|
|
|
|
|
.DA K.CLOSEDIRA
|
|
|
|
|
.DA K.MKDIRYA
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Bank 2
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA K.COutA $40
|
2016-10-17 15:47:50 +00:00
|
|
|
|
.DA K.SScanF
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA 0
|
2016-10-12 06:28:57 +00:00
|
|
|
|
.DA K.PrintFYA
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA 0
|
2016-09-21 15:20:37 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.NewPStrYA $50
|
2016-09-21 15:20:37 +00:00
|
|
|
|
.DA K.PStrCpy
|
|
|
|
|
.DA K.PStrCat
|
|
|
|
|
.DA K.PStrMatch
|
|
|
|
|
.DA K.PStrUprYA
|
|
|
|
|
.DA K.PStrLwrYA
|
2016-09-28 15:34:15 +00:00
|
|
|
|
.DA K.PStrFTime
|
2016-09-21 15:20:37 +00:00
|
|
|
|
.DA K.PStr2StrArrayYA
|
2016-06-07 06:10:18 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.ExecProcessNewEnvYA $60
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA K.ExecProcessYA
|
|
|
|
|
.DA K.CreateProcessNewEnvYA
|
|
|
|
|
.DA K.CreateProcessYA
|
|
|
|
|
.DA K.GetPSByIDA
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA K.Sleep
|
2016-08-17 06:25:58 +00:00
|
|
|
|
.DA 0
|
2016-06-07 06:10:18 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.GetArgC $70
|
2016-09-21 15:20:37 +00:00
|
|
|
|
.DA K.GetArgA
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.ExpandPStrYA
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA 0
|
2016-09-21 15:20:37 +00:00
|
|
|
|
.DA K.PutEnvYA
|
|
|
|
|
.DA K.SetEnv
|
|
|
|
|
.DA K.GetEnvYA
|
|
|
|
|
.DA K.UnsetEnvYA
|
2016-06-07 06:10:18 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.GetDevByIDA $80
|
|
|
|
|
.DA K.GetDevByNameYA
|
|
|
|
|
.DA K.GetDevInfoA
|
2016-06-07 06:10:18 +00:00
|
|
|
|
.DA 0
|
2016-09-20 06:17:20 +00:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2016-09-28 15:34:15 +00:00
|
|
|
|
.DA 0
|
2016-06-07 06:10:18 +00:00
|
|
|
|
*--------------------------------------
|
2016-09-27 15:51:59 +00:00
|
|
|
|
* $E000
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.GetMem $90
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA K.FreeMemA
|
|
|
|
|
.DA K.GetMemPtrA
|
|
|
|
|
.DA K.GetMemByIDA
|
|
|
|
|
.DA K.GetMemByNameYA
|
|
|
|
|
.DA K.LoadStockObjectYA
|
|
|
|
|
.DA K.GetStockObjectA
|
|
|
|
|
.DA K.FreeStockObject
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA K.SetLoMem
|
|
|
|
|
.DA K.GetMemStatYA
|
2016-09-26 16:00:52 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
* LO Byte :
|
|
|
|
|
* #RRAMWRAMBNK1 or #RRAMWRAMBNK2
|
|
|
|
|
* LO Byte :
|
2016-09-05 06:10:04 +00:00
|
|
|
|
*--------------------------------------
|
2016-09-26 16:00:52 +00:00
|
|
|
|
KERNEL.SYSCALL.FLAGS
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $00
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.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
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $10
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.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
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $20
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $30
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
* $40 -> $8E
|
2016-09-27 15:51:59 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $40
|
2016-09-26 16:00:52 +00:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
.DA #$80
|
2016-09-26 16:00:52 +00:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #$80
|
2016-09-26 16:00:52 +00:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #$80
|
2016-09-26 16:00:52 +00:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
.DA #$80
|
2016-09-26 16:00:52 +00:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-05 06:10:04 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $50
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.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
|
2016-09-05 06:10:04 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $60
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.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
|
2016-09-05 06:10:04 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $70
|
2016-09-27 15:51:59 +00:00
|
|
|
|
.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
|
2016-09-05 06:10:04 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
.DA #$80 $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
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA 0 $90 : MemMgr at $E000
|
2016-10-06 15:50:20 +00:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2016-09-05 06:10:04 +00:00
|
|
|
|
*--------------------------------------
|
2016-10-07 15:28:17 +00:00
|
|
|
|
|
2016-06-07 06:10:18 +00:00
|
|
|
|
MAN
|
|
|
|
|
SAVE SYS/KERNEL.S.JMP
|
|
|
|
|
LOAD SYS/KERNEL.S
|
|
|
|
|
ASM
|