A2osX/SYS/KERNEL.S.STRV.txt
2023-11-12 14:20:15 +01:00

54 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
AUTO 3,1
*/--------------------------------------
* # StrVSet
* ## ASM
* `>PUSHB hSTRV`
* `>PUSHW id`
* `>PUSHW ptr`
* `>SYSCALL StrVSet`
* ## RETURN VALUE
*\--------------------------------------
K.StrVSet .EQ JMP.X2A
* >PULLW FORPNT ptr
* >PULLW TXTPTR id
* >PULLA
* jmp JMP.X
*/--------------------------------------
* # StrVGet
* ## ASM
* `>PUSHB hSTRV`
* `>PUSHW id`
* `>PUSHW ptr`
* `>SYSCALL StrVGet`
* ## RETURN VALUE
* CC: Y,A = Ptr
* CS: Y,A = NULL
*\--------------------------------------
K.StrVGet .EQ JMP.X2A
* >PULLW FORPNT ptr
* >PULLW TXTPTR id
* >PULLA
* jmp JMP.X
*/--------------------------------------
* # StrVNew
* ## ASM
* `>LDYA size`
* `>SYSCALL StrVNew`
* ## RETURN VALUE
*\--------------------------------------
K.StrVNew .EQ JMP.X
*/--------------------------------------
* # StrVFree
* ## ASM
* `lda hSTRV`
* `>SYSCALL StrVFree`
* ## RETURN VALUE
*\--------------------------------------
K.StrVFree .EQ JMP.X
*--------------------------------------
MAN
SAVE usr/src/sys/kernel.s.strv
LOAD usr/src/sys/kernel.s
ASM