Re: A83: _vputs and null problem


[Prev][Next][Index][Thread]

Re: A83: _vputs and null problem




>Alright, I'm fairly competant at asm, but this is confusing the hell out of
>me... :\  I am simply placing some string data with _vputs, and the null
>bytes are not working properly for me.  Here's my string data (btw, its a
>Tic-tac-toe game im helping somebody on)...
>
>Xs:  .db "X's",0
>Os:  .db "O's",0
>
>Libraries:
>         .db "ZLIB",0
>          etc.
>
>When I point to "Xs" for _vputs, this is what comes onto the screen:
>"X'sO'sZLIB", Then it stops, and when I point to "O's", it gives 
>"O'sZLIB"...
>  I really dont understand why this is happening, anybody have some insight 
>on
>this? =P
>
>Jason_K

I'm not sure, but I think the problem is the "'" in those strings... try 
this:

Xs:  .db "X",22h,"s",0  ; I'm not sure that 22h is the token for "'"
Os:  .db "O",22h,"s",0  ; but I supose you can find it in ti83asm.inc

Libraries:
         .db "ZLIB",0

Hope this works!

Sebastiaan


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com