A2osX/SYS/KERNEL.S.STRV.txt

54 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-01-24 15:21:08 +01:00
NEW
AUTO 3,1
*/--------------------------------------
2021-04-29 13:56:34 +02:00
* # StrVSet
* ## ASM
* `>PUSHB hSTRV`
* `>PUSHW id`
* `>PUSHW ptr`
* `>SYSCALL StrVSet`
* ## RETURN VALUE
*\--------------------------------------
2021-05-09 14:39:40 +02:00
K.StrVSet .EQ K.SYSCALL.JMPX2A
* >PULLW FORPNT ptr
* >PULLW TXTPTR id
* >PULLA
* jmp K.SYSCALL.JMPX
2021-04-29 13:56:34 +02:00
*/--------------------------------------
2020-03-09 17:24:08 +01:00
* # StrVGet
2020-01-30 15:59:40 +01:00
* ## ASM
* `>PUSHB hSTRV`
2021-04-29 13:56:34 +02:00
* `>PUSHW id`
2020-03-09 17:24:08 +01:00
* `>PUSHW ptr`
* `>SYSCALL StrVGet`
2020-01-24 15:21:08 +01:00
* ## RETURN VALUE
2020-03-09 17:24:08 +01:00
* CC: Y,A = Ptr
* CS: Y,A = NULL
2020-01-24 15:21:08 +01:00
*\--------------------------------------
2021-05-09 14:39:40 +02:00
K.StrVGet .EQ K.SYSCALL.JMPX2A
* >PULLW FORPNT ptr
* >PULLW TXTPTR id
* >PULLA
* jmp K.SYSCALL.JMPX
2020-01-24 15:21:08 +01:00
*/--------------------------------------
2021-04-29 13:56:34 +02:00
* # StrVNew
2020-01-28 17:42:51 +01:00
* ## ASM
2021-04-29 13:56:34 +02:00
* `>LDYA size`
* `>SYSCALL StrVNew`
2020-01-24 15:21:08 +01:00
* ## RETURN VALUE
*\--------------------------------------
2021-05-09 14:39:40 +02:00
K.StrVNew .EQ K.SYSCALL.JMPX
2020-01-28 17:42:51 +01:00
*/--------------------------------------
2021-04-29 13:56:34 +02:00
* # StrVFree
2020-01-28 17:42:51 +01:00
* ## ASM
2021-04-29 13:56:34 +02:00
* `lda hSTRV`
* `>SYSCALL StrVFree`
2020-01-28 17:42:51 +01:00
* ## RETURN VALUE
*\--------------------------------------
2021-05-09 14:39:40 +02:00
K.StrVFree .EQ K.SYSCALL.JMPX
2020-03-12 17:44:11 +01:00
*--------------------------------------
2020-01-24 15:21:08 +01:00
MAN
2020-12-15 14:23:22 +01:00
SAVE usr/src/sys/kernel.s.strv
LOAD usr/src/sys/kernel.s
2020-01-24 15:21:08 +01:00
ASM