[TI-ASM]Overwriting labels
Moderator: MaxCoderz Staff
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
Sounds like a very good idea, but I fear there will be some limitation keeping you from using that much tokens
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
If you're only going to use the tokens in your own editor, you could just do something like this:
there should be a mistake/typo in it somewhere, never trust my code
and the code at Text should look like this:
And if you're going to use the old program editor, well, I'll look into it (I'm using it, but I use lowercase letter-tokens)
Code: Select all
;hl is pointer to the place you store the stuff
ld l,(hl)
ld h,0
add hl,hl
add hl,hl
add hl,hl ;8 times HL, assuming you use 7 letters max
ld de,Text
add hl,de ;hl is now a real pointer to the text
bcall(_PutS)
ret ;if you're making this a subroutine
and the code at Text should look like this:
Code: Select all
Text:
.db "add ",0,0,0,0
.db "adc ",0,0,0,0
.db "bcall(_",0
etc.. etc..