A2osX/SYS/KERNEL.S.STRV.txt

54 lines
1.2 KiB
Plaintext
Raw Normal View History

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