2016-06-07 08:10:18 +02:00
|
|
|
|
PR#3
|
|
|
|
|
PREFIX /A2OSX.SRC
|
|
|
|
|
NEW
|
|
|
|
|
INC 1
|
|
|
|
|
AUTO 6
|
|
|
|
|
*--------------------------------------
|
2016-06-23 17:56:13 +02:00
|
|
|
|
* $D000-D0FF KERNEL.SYSCALL Jmp Table
|
2016-06-07 08:10:18 +02:00
|
|
|
|
*--------------------------------------
|
2016-09-27 17:51:59 +02:00
|
|
|
|
KERNEL.SYSCALL
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Bank 1
|
|
|
|
|
*--------------------------------------
|
2016-10-07 17:28:17 +02: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
|
|
|
|
|
*--------------------------------------
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.FOpen $20
|
2016-10-29 21:58:21 +02:00
|
|
|
|
.DA K.FCloseA
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.FRead
|
|
|
|
|
.DA K.FWrite
|
|
|
|
|
.DA K.FFlushA
|
|
|
|
|
.DA K.FSeek
|
|
|
|
|
.DA K.FTellA
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.FEOFA
|
|
|
|
|
*--------------------------------------
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.RemoveYA $30
|
|
|
|
|
.DA K.Rename
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.STAT
|
|
|
|
|
.DA 0
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.OpenDirYA
|
2016-10-26 22:51:06 +02:00
|
|
|
|
.DA K.ReadDirA
|
|
|
|
|
.DA K.CloseDirA
|
|
|
|
|
.DA K.MKDirYA
|
2016-10-07 17:28:17 +02:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Bank 2
|
|
|
|
|
*--------------------------------------
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA 0 $40
|
2016-10-17 17:47:50 +02:00
|
|
|
|
.DA K.SScanF
|
2016-11-03 17:23:16 +01:00
|
|
|
|
.DA K.PPrintFYA
|
|
|
|
|
.DA K.CPrintFYA
|
2016-10-12 08:28:57 +02:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA 0
|
2016-09-21 17:20:37 +02:00
|
|
|
|
*--------------------------------------
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.NewPStrYA $50
|
2016-09-21 17:20:37 +02:00
|
|
|
|
.DA K.PStrCpy
|
|
|
|
|
.DA K.PStrCat
|
|
|
|
|
.DA K.PStrMatch
|
|
|
|
|
.DA K.PStrUprYA
|
|
|
|
|
.DA K.PStrLwrYA
|
2016-09-28 17:34:15 +02:00
|
|
|
|
.DA K.PStrFTime
|
2016-09-21 17:20:37 +02:00
|
|
|
|
.DA K.PStr2StrArrayYA
|
2016-06-07 08:10:18 +02:00
|
|
|
|
*--------------------------------------
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.ExecProcessNewEnvYA $60
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA K.ExecProcessYA
|
|
|
|
|
.DA K.CreateProcessNewEnvYA
|
|
|
|
|
.DA K.CreateProcessYA
|
|
|
|
|
.DA K.GetPSByIDA
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA K.Sleep
|
2016-08-17 08:25:58 +02:00
|
|
|
|
.DA 0
|
2016-06-07 08:10:18 +02:00
|
|
|
|
*--------------------------------------
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.GetArgC $70
|
2016-09-21 17:20:37 +02:00
|
|
|
|
.DA K.GetArgA
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.ExpandPStrYA
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA 0
|
2016-09-21 17:20:37 +02:00
|
|
|
|
.DA K.PutEnvYA
|
|
|
|
|
.DA K.SetEnv
|
|
|
|
|
.DA K.GetEnvYA
|
|
|
|
|
.DA K.UnsetEnvYA
|
2016-06-07 08:10:18 +02:00
|
|
|
|
*--------------------------------------
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.GetDevByIDA $80
|
|
|
|
|
.DA K.GetDevByNameYA
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.GetDevStatusA
|
2016-09-20 08:17:20 +02:00
|
|
|
|
.DA 0
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.MKNodYA
|
|
|
|
|
.DA K.MKNodA
|
|
|
|
|
.DA K.MKFIFO
|
2016-09-28 17:34:15 +02:00
|
|
|
|
.DA 0
|
2016-06-07 08:10:18 +02:00
|
|
|
|
*--------------------------------------
|
2016-09-27 17:51:59 +02:00
|
|
|
|
* $E000
|
|
|
|
|
*--------------------------------------
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.GetMem $90
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA K.FreeMemA
|
|
|
|
|
.DA K.GetMemPtrA
|
|
|
|
|
.DA K.GetMemByIDA
|
2016-11-01 22:34:29 +01:00
|
|
|
|
.DA 0
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA K.LoadStkObjYA
|
|
|
|
|
.DA K.GetStkObjA
|
|
|
|
|
.DA K.FreeStkObjA
|
2016-09-27 17:51:59 +02:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA K.SetLoMem $A0
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA K.GetMemStatYA
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA K.FPutCAY
|
|
|
|
|
.DA K.PutCA
|
|
|
|
|
.DA K.FGetCA
|
|
|
|
|
.DA K.GetC
|
|
|
|
|
.DA K.FPutS
|
|
|
|
|
.DA K.PutSYA
|
|
|
|
|
.DA K.FGetS
|
|
|
|
|
.DA K.GetSYA
|
2016-09-26 18:00:52 +02:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
* LO Byte :
|
|
|
|
|
* #RRAMWRAMBNK1 or #RRAMWRAMBNK2
|
|
|
|
|
* LO Byte :
|
2016-09-05 08:10:04 +02:00
|
|
|
|
*--------------------------------------
|
2016-09-26 18:00:52 +02:00
|
|
|
|
KERNEL.SYSCALL.FLAGS
|
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $00
|
2016-09-27 17:51:59 +02: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-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $10
|
2016-09-27 17:51:59 +02: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-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $20
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA #$80
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $30
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #RRAMWRAMBNK1
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK1
|
2016-10-07 17:28:17 +02:00
|
|
|
|
.DA #$80
|
2016-09-27 17:51:59 +02: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 17:28:17 +02:00
|
|
|
|
* $40 -> $8E
|
2016-09-27 17:51:59 +02:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $40
|
2016-09-26 18:00:52 +02:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
.DA #$80
|
2016-09-26 18:00:52 +02:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #$80
|
2016-09-26 18:00:52 +02:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #$80
|
2016-09-26 18:00:52 +02:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-27 17:51:59 +02:00
|
|
|
|
.DA #$80
|
|
|
|
|
.DA #RRAMWRAMBNK2
|
|
|
|
|
.DA #$80
|
2016-09-26 18:00:52 +02:00
|
|
|
|
.DA #RRAMWRAMBNK2
|
2016-09-05 08:10:04 +02:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $50
|
2016-09-27 17:51:59 +02: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 08:10:04 +02:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $60
|
2016-09-27 17:51:59 +02: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 08:10:04 +02:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $70
|
2016-09-27 17:51:59 +02: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 08:10:04 +02:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA #$80 $80
|
2016-10-07 17:28:17 +02: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-11-14 17:27:30 +01:00
|
|
|
|
.DA 0 $90 : MemMgr at $E000
|
2016-10-06 17:50:20 +02:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2017-01-12 18:43:45 +01:00
|
|
|
|
*--------------------------------------
|
2016-11-14 17:27:30 +01:00
|
|
|
|
.DA 0 $A0
|
|
|
|
|
.DA 0
|
2017-01-12 18:43:45 +01:00
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DA 0 $B0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
2016-09-05 08:10:04 +02:00
|
|
|
|
*--------------------------------------
|
2016-06-07 08:10:18 +02:00
|
|
|
|
MAN
|
|
|
|
|
SAVE SYS/KERNEL.S.JMP
|
|
|
|
|
LOAD SYS/KERNEL.S
|
|
|
|
|
ASM
|