2020-02-18 15:34:56 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListGetData
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>PUSHW KeyID`
|
|
|
|
|
* `>PUSHW DataPtr` (0 if KERNEL should allocate a buffer)
|
|
|
|
|
* `>PUSHW DataLen` (Data bytes to return, 0 if String mode)
|
|
|
|
|
* `>PUSHW DataOfs` (Start offset in Data)
|
|
|
|
|
* `>SYSCALL SListGetData`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
* Y,A = Byte Count
|
|
|
|
|
* X = hMem (if DataPtr = 0)
|
|
|
|
|
*\--------------------------------------
|
2020-02-20 16:54:51 +00:00
|
|
|
|
K.SListGetData >PULLW ZPSListDataOfs
|
2020-02-18 15:34:56 +00:00
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListAddData
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>PUSHW KeyID`
|
|
|
|
|
* `>PUSHW DataPtr`
|
|
|
|
|
* `>PUSHW DataLen`
|
|
|
|
|
* `>SYSCALL SListAddData`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.SListAddData
|
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListSetData
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>PUSHW KeyID`
|
|
|
|
|
* `>PUSHW DataPtr`
|
|
|
|
|
* `>PUSHW DataLen`
|
|
|
|
|
* `>SYSCALL SListSetData`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.SListSetData >PULLW ZPSListDataLen
|
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListGetByID
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>PUSHW KeyID`
|
2020-02-24 13:33:28 +00:00
|
|
|
|
* `>PUSHW KeyPtr`
|
2020-02-18 15:34:56 +00:00
|
|
|
|
* `>SYSCALL SListGetByID`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
* Y,A = Next KeyID
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.SListGetByID >PULLW FORPNT
|
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListNewKey
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>PUSHW KeyPtr`
|
|
|
|
|
* `>SYSCALL SListNewKey`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
* Y,A = KeyID
|
|
|
|
|
* X = KeyLen
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.SListNewKey
|
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListLookup
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>PUSHW KeyPtr`
|
|
|
|
|
* `>SYSCALL SListLookup`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
* Y,A = KeyID
|
|
|
|
|
* X = Key Length
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.SListLookup >PULLW TXTPTR
|
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListFree
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>PUSHB hSList`
|
|
|
|
|
* `>SYSCALL SListFree`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
*\--------------------------------------
|
2020-02-20 16:54:51 +00:00
|
|
|
|
K.SListFree >PULLA
|
2020-02-18 15:34:56 +00:00
|
|
|
|
*/--------------------------------------
|
|
|
|
|
* # SListNew
|
|
|
|
|
* ## ASM
|
|
|
|
|
* `>SYSCALL SListNew`
|
|
|
|
|
* ## RETURN VALUE
|
|
|
|
|
* A=hSList
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.SListNew jmp K.SYSCALL.JMPX
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2020-12-15 13:23:22 +00:00
|
|
|
|
SAVE usr/src/sys/kernel.s.slist
|
|
|
|
|
LOAD usr/src/sys/kernel.s
|
2020-02-18 15:34:56 +00:00
|
|
|
|
ASM
|