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
|
|
|
|
|
*\--------------------------------------
|
|
|
|
|
K.StrVSet
|
|
|
|
|
*/--------------------------------------
|
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
|
|
|
|
*\--------------------------------------
|
2020-03-09 16:24:08 +00:00
|
|
|
|
K.StrVGet >PULLW FORPNT ptr
|
2021-04-29 11:56:34 +00:00
|
|
|
|
>PULLW TXTPTR id
|
|
|
|
|
>PULLA
|
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-04-29 11:56:34 +00:00
|
|
|
|
K.StrVNew
|
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-04-29 11:56:34 +00:00
|
|
|
|
K.StrVFree jmp 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
|