A2osX/SYS/KERNEL.S.JMP.txt

511 lines
9.4 KiB
Plaintext
Raw Normal View History

2017-12-22 21:24:30 +00:00
NEW
2019-05-25 19:24:07 +00:00
AUTO 3,1
2016-06-07 06:10:18 +00:00
*--------------------------------------
2019-05-04 21:13:50 +00:00
* $E000-E1FF System calls Jump Table
*--------------------------------------
* Bank 1
*--------------------------------------
2023-11-12 13:20:15 +00:00
JMP.TABL .DA 0 $00 : STAT
2019-05-04 21:13:50 +00:00
.DA K.ChMod
2018-10-04 15:30:14 +00:00
.DA K.FStat
.DA K.Stat
2018-06-18 06:22:50 +00:00
.DA K.MKDir
.DA K.MKNod
.DA K.MKFIFO
2019-02-04 16:37:15 +00:00
.DA K.Pipe
2019-12-02 16:47:53 +00:00
2020-02-14 07:21:56 +00:00
.DA K.OpenDir $10 : DIRENT
2018-06-18 06:22:50 +00:00
.DA K.ReadDir
2018-09-06 15:36:44 +00:00
.DA K.FClose
2020-02-14 07:21:56 +00:00
.DA K.Open UNISTD
2018-07-11 15:13:29 +00:00
.DA K.Close
.DA K.Read
.DA K.Write
2020-03-11 06:40:01 +00:00
.DA K.ChOwn
2020-02-14 07:21:56 +00:00
.DA K.FPutC $20 : STDIO
2018-06-18 06:22:50 +00:00
.DA K.PutChar
.DA K.GetC
.DA K.GetChar
.DA K.FPutS
2018-06-18 06:22:50 +00:00
.DA K.PutS
2018-07-27 13:34:34 +00:00
.DA K.FGetS
2020-07-01 05:48:31 +00:00
.DA K.UngetC
2019-12-02 16:47:53 +00:00
.DA K.FOpen $30
2018-06-18 06:22:50 +00:00
.DA K.FClose
2017-01-12 17:43:45 +00:00
.DA K.FRead
.DA K.FWrite
2018-06-18 06:22:50 +00:00
.DA K.FFlush
2017-01-12 17:43:45 +00:00
.DA K.FSeek
.DA K.FTell
2018-06-18 06:22:50 +00:00
.DA K.FEOF
2018-06-18 06:22:50 +00:00
.DA K.Remove $40
2017-01-12 17:43:45 +00:00
.DA K.Rename
2020-02-16 20:45:16 +00:00
.DA K.PrintF
.DA K.FPrintF
.DA K.SPrintF
.DA K.ScanF
2020-12-15 13:23:22 +00:00
.DA K.FScanF
2018-06-18 06:22:50 +00:00
.DA K.SScanF
2020-12-15 13:23:22 +00:00
.DA 0 $50
.DA 0
.DA 0
2020-02-14 16:32:52 +00:00
.DA 0
.DA K.Online $58 : PRODOS
.DA K.ChTyp
.DA K.ChAux
2020-07-30 11:14:37 +00:00
.DA K.SetAttr
2020-02-17 16:55:02 +00:00
*--------------------------------------
* Bank 2
*--------------------------------------
.DA K.Mount $60 : MOUNT
2020-05-17 17:34:32 +00:00
.DA K.UMount
.DA K.LoadStkObj $64 : STKOBJ
2020-07-30 13:59:04 +00:00
.DA K.GetStkObj
2020-02-17 16:55:02 +00:00
.DA K.Shift $68 : ARG
.DA K.ArgV
.DA K.ArgVDup
2021-05-04 17:31:21 +00:00
.DA K.GetErrMsg
2020-02-17 16:55:02 +00:00
2020-02-14 07:21:56 +00:00
.DA K.AToF $70 : STDLIB
2018-06-18 06:22:50 +00:00
.DA K.AToI
.DA K.AToL
.DA K.StrToF
.DA K.StrToL
2019-09-02 15:34:10 +00:00
.DA K.StrToUL
2018-06-18 06:22:50 +00:00
.DA K.RealPath
2020-02-14 07:21:56 +00:00
.DA K.Expand
.DA K.StrLen $80 : STRING
.DA K.StrCpy
.DA K.StrCat
2018-12-20 16:23:43 +00:00
.DA K.StrDup
2018-06-18 06:22:50 +00:00
.DA K.StrUpr
.DA K.StrLwr
2018-01-15 16:51:44 +00:00
.DA K.StrCmp
2018-09-06 12:27:37 +00:00
.DA K.StrCaseCmp
2020-02-16 20:45:16 +00:00
.DA K.GetDevByName $90 : DEV
2023-10-18 05:41:12 +00:00
.DA 0
2020-02-16 20:45:16 +00:00
.DA K.MKDev
.DA K.IOCTL
2020-02-14 07:21:56 +00:00
.DA K.LoadLib BIN
2018-06-18 06:22:50 +00:00
.DA K.UnloadLib
.DA K.LoadDrv
2018-06-28 15:26:34 +00:00
.DA K.InsDrv
2020-02-14 07:21:56 +00:00
.DA K.ExecL $A0 : PS
2018-10-25 15:31:41 +00:00
.DA K.ExecV
2020-02-07 12:53:46 +00:00
.DA K.Fork
2018-12-04 13:20:35 +00:00
.DA K.Kill
2019-07-29 15:38:55 +00:00
.DA K.LoadFile
.DA K.LoadTxtFile
2020-02-07 12:53:46 +00:00
.DA K.FileSearch
2019-07-29 15:38:55 +00:00
.DA K.GetMemStat
2020-02-17 16:55:02 +00:00
*--------------------------------------
* AUX
*--------------------------------------
2021-04-29 11:56:34 +00:00
.DA K.StrVNew $B0 : STRV
.DA K.StrVSet
2020-02-17 16:55:02 +00:00
.DA K.StrVGet
2021-04-29 11:56:34 +00:00
.DA K.StrVFree
2020-02-17 16:55:02 +00:00
.DA K.PutEnv $B8 : ENV
.DA K.SetEnv
2018-06-18 06:22:50 +00:00
.DA K.GetEnv
.DA K.UnsetEnv
2020-02-17 16:55:02 +00:00
2020-02-14 07:21:56 +00:00
.DA K.Time $C0 : TIME
2020-01-21 07:34:32 +00:00
.DA K.StrFTime
.DA K.PTime2Time
.DA K.CTime2Time
2020-02-17 16:55:02 +00:00
.DA K.MD5 $C8 : MD5
2020-01-20 07:23:51 +00:00
.DA K.MD5Init
.DA K.MD5Update
.DA K.MD5Finalize
2017-10-27 14:56:46 +00:00
2020-02-14 07:21:56 +00:00
.DA K.GetPWUID $D0 : PWD
2019-07-19 14:05:22 +00:00
.DA K.GetPWName
.DA K.PutPW
2020-02-17 16:55:02 +00:00
.DA K.GetGRGID
.DA K.GetGRName
.DA K.PutGR
2020-03-12 16:44:11 +00:00
.DA K.OpenSession
.DA K.CloseSession
2020-02-17 16:55:02 +00:00
.DA K.SListGetData $E0 : SLIST
.DA K.SListAddData
.DA K.SListSetData
.DA K.SListGetByID
.DA K.SListNewKey
.DA K.SListLookup
.DA K.SListFree
2020-02-18 15:34:56 +00:00
.DA K.SListNew
2016-06-07 06:10:18 +00:00
*--------------------------------------
* $E000
*--------------------------------------
2020-02-17 16:55:02 +00:00
.DA K.GetMem $F0
2020-01-31 16:12:25 +00:00
.DA K.Realloc
2019-01-30 06:20:13 +00:00
.DA K.GetMemPtr
.DA K.FreeMem
.DA K.Free
2019-01-30 06:20:13 +00:00
2019-06-19 15:56:59 +00:00
.DA K.GetMem K.NewStkObj
.DA K.GetMemPtr K.GetStkObjPtr
.DA K.FreeMem K.FreeStkObj
2016-09-26 16:00:52 +00:00
*--------------------------------------
* LO Byte :
2023-11-04 14:42:28 +00:00
* #IO.RRAMWRAMBNK1,#IO.RRAMWRAMBNK2
* HI Byte :
* Flags (ROOT....)
2016-09-05 06:10:04 +00:00
*--------------------------------------
2023-11-12 13:20:15 +00:00
JMP.BANK .DA #IO.RRAMWRAMBNK1 $00
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $10
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $20 : STDIO
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $30
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $40
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2020-02-07 06:42:30 +00:00
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $50
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $58 : PRODOS
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
*--------------------------------------
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $60 : MOUNT
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $64 : STKOBJ
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $68 : ARG
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-14 07:21:56 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $70 : STDLIB
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2020-02-07 06:42:30 +00:00
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $80 : STRING
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2020-02-07 06:42:30 +00:00
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1 $90 : DEV
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK1
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $98 : BIN
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2 $A0 : PS
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
2023-11-04 14:42:28 +00:00
.DA #IO.RRAMWRAMBNK2
2020-02-17 16:55:02 +00:00
.DA #0
.DA #0 $B0 : STRV
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
2020-02-06 16:23:59 +00:00
.DA #0 $B8 : ENV
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
2017-10-27 14:56:46 +00:00
2020-02-06 16:23:59 +00:00
.DA #0 $C0 : TIME
2020-01-21 07:34:32 +00:00
.DA #0
.DA #0
.DA #0
2020-02-17 16:55:02 +00:00
.DA #0
.DA #0
.DA #0
.DA #0
2020-01-24 14:21:08 +00:00
.DA #0 $C8 : MD5
.DA #0
.DA #0
.DA #0
2020-02-17 16:55:02 +00:00
.DA #0
.DA #0
.DA #0
.DA #0
2017-10-27 14:56:46 +00:00
2020-02-18 15:34:56 +00:00
.DA #0 $D0 : PWD
.DA #0
.DA #0
.DA #0
2020-02-17 16:55:02 +00:00
.DA #0
.DA #0
2020-02-07 15:35:52 +00:00
.DA #0
.DA #0
2020-02-17 16:55:02 +00:00
2020-02-07 15:35:52 +00:00
.DA #0
.DA #0
.DA #0
.DA #0
2020-02-02 14:58:01 +00:00
.DA #0
2019-06-19 15:56:59 +00:00
.DA #0
.DA #0
.DA #0
2020-02-17 16:55:02 +00:00
2020-02-18 15:34:56 +00:00
.DA #0 $E0 : SLIST
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
2019-06-19 15:56:59 +00:00
.DA #0
2020-02-17 16:55:02 +00:00
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
.DA #0
*--------------------------------------
.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 #$C0 NewStkObj
2020-02-17 16:55:02 +00:00
.DA #0
.DA #$C0 GetStkObjPtr
.DA #0
.DA #$C0 FreeStkObj
.DA #0
*--------------------------------------
2023-11-12 13:20:15 +00:00
* From KERNEL (MAIN,AUX), LIB
2019-08-05 13:30:58 +00:00
*--------------------------------------
2023-11-12 13:20:15 +00:00
JMP.2 bit JMP.BANK,x Get Target BNK
bvc JMP.B
2019-06-19 15:56:59 +00:00
2023-11-12 13:20:15 +00:00
sta IO.SETREADAUX MAIN to AUX Mem API
2023-11-04 14:42:28 +00:00
sta IO.SETWRITEAUX
2023-11-12 13:20:15 +00:00
jsr JMP.JMPX
2023-11-04 14:42:28 +00:00
sta IO.CLRREADAUX
sta IO.CLRWRITEAUX
2019-06-19 15:56:59 +00:00
rts
2020-02-03 15:17:34 +00:00
2023-11-12 13:20:15 +00:00
JMP.M sta IO.CLRREADAUX Coming from KERNEL in AUX...
2023-11-04 14:42:28 +00:00
sta IO.CLRWRITEAUX
2019-08-05 13:30:58 +00:00
jsr .1
2023-11-04 14:42:28 +00:00
sta IO.SETREADAUX
sta IO.SETWRITEAUX
2019-08-05 13:30:58 +00:00
rts
2021-02-11 22:08:22 +00:00
2023-11-12 13:20:15 +00:00
.1 bit JMP.BANK,x Get Target LC BNK
JMP.B bpl JMP.JMPX 0, E000, no BNK change
2019-12-02 16:47:53 +00:00
2019-08-05 13:30:58 +00:00
sta .7+1
2023-11-04 14:42:28 +00:00
lda $D000 #IO.RRAMWRAMBNK1 or #IO.RRAMWRAMBNK2
2023-11-12 13:20:15 +00:00
cmp JMP.BANK,x
2019-05-04 21:13:50 +00:00
beq .7
2021-02-11 22:08:22 +00:00
2019-05-04 21:13:50 +00:00
pha remember source BNK
stx .6+1
2023-11-12 13:20:15 +00:00
lda JMP.BANK,x
2019-05-04 21:13:50 +00:00
tax get Target BNK in x
bit $C000,x switch to Target BNK
2023-11-04 14:42:28 +00:00
* bit $C000,x
2019-05-04 21:13:50 +00:00
jsr .6
2019-12-02 16:47:53 +00:00
2019-05-04 21:13:50 +00:00
stx .5+1 Save X
plx get back Source BNK
bit $C000,x switch to Target BNK
2023-11-04 14:42:28 +00:00
* bit $C000,x
2019-05-04 21:13:50 +00:00
.5 ldx #$ff SELF MODIFIED
2019-01-26 14:01:05 +00:00
rts
2021-02-11 22:08:22 +00:00
2019-05-04 21:13:50 +00:00
.6 ldx #$ff SELF MODIFIED
.7 lda #$ff SELF MODIFIED
2019-05-05 17:15:37 +00:00
2023-11-12 13:20:15 +00:00
JMP.JMPX jmp (JMP.TABL,x)
2019-01-26 14:01:05 +00:00
*--------------------------------------
2023-11-12 13:20:15 +00:00
JMP.X1A >PULLW FORPNT
bra JMP.XA
JMP.X2A sec
2021-05-09 12:39:40 +00:00
.HS 90 BCC
2023-11-12 13:20:15 +00:00
JMP.X2 clc
2021-05-09 12:39:40 +00:00
>PULLW FORPNT
>PULLW TXTPTR
2023-11-12 13:20:15 +00:00
bcc JMP.X
2021-05-09 12:39:40 +00:00
2023-11-12 13:20:15 +00:00
JMP.XA >PULLA
2023-11-12 13:20:15 +00:00
JMP.X sta IO.SETREADAUX
2023-11-04 14:42:28 +00:00
sta IO.SETWRITEAUX
2021-05-09 12:39:40 +00:00
jsr JMPX
2023-11-04 14:42:28 +00:00
sta IO.CLRREADAUX
sta IO.CLRWRITEAUX
2020-02-03 22:06:28 +00:00
rts
*--------------------------------------
2016-06-07 06:10:18 +00:00
MAN
2020-07-07 13:44:28 +00:00
SAVE usr/src/sys/kernel.s.jmp
LOAD usr/src/sys/kernel.s
2016-06-07 06:10:18 +00:00
ASM