A2osX/BIN/CC.S.TAG.txt
2025-01-19 17:12:51 +01:00

51 lines
968 B
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
*--------------------------------------
TAG.New >SS
>PUSHW.G CC.pTags
>PUSHW ZP.pLineBuf
>PUSHWI 0 ScopeID
>PUSHWI ZP.pLineBuf NextPtr
>KAPI SListNewKey
>SR
bcs .9
>STYA ZPPtr1 TagID
.9 rts
*--------------------------------------
TAG.Store >SS
>PUSHW.G CC.pTags
>PUSHW ZPPtr1
>PUSHW ZP.pTypeBuf
>PUSHWI SYM
>KAPI SListAddData
>SR
rts
*--------------------------------------
TAG.Lookup >SS
>PUSHW.G CC.pTags
>PUSHW ZP.pLineBuf
>PUSHWI 0 ScopeID
>PUSHWI ZP.pLineBuf NextPtr
>KAPI SListLookup
>SR
bcs .9
>STYA ZPPtr1 Y,A = KeyID
>SS
>PUSHW.G CC.pTags
>PUSHW ZPPtr1
>PUSHW ZP.pTypeBuf
>PUSHWI 65535 all
>PUSHWZ From Start
>KAPI SListGetData
>SR
.9 rts
*--------------------------------------
MAN
SAVE usr/src/bin/cc.s.tag
LOAD usr/src/bin/cc.s
ASM