A86: Re: tokens?


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

A86: Re: tokens?



Everything that doesn't produce an "undefined" error from the home screen is a token (variables; command: "Asm("; unary: "cos"; immediate unary: "!"; binary: "+"; function: "Line("; and no argument function: "rand".  Each of these are tokenized before parsing, which means that they are converted from text to byte or two byte hex codes and followed by the parameters (look at _ram_cache to see the tokenized command line).  In the case of $8e29, since it is a program type variable, it is in the third and fourth bytes of the program data (it's put there so that the calc can easily tell whether a program is hex, binary, edit-lock because it can't tell from the VAT).  The first two bytes of the program are its absolute length, the third an fourth bytes are the token, and the fifth byte is where the program code begins.
-----Original Message-----
From: JBrett <tbarwick@esn.net>
To: ASM86 Mailing List <assembly-86@lists.ticalc.org>
Date: Thursday, September 24, 1998 3:41 PM
Subject: A86: tokens?

Can someone help me with tokens??  I especially need how to know how to use the 8E29 token and a few others.  What I can't figure out is what to do with the tokens.  Do I set them or call them or what??  Can anyone help me.
Thanks a lot!
--------------
Jbrett
tbarwick@esn.net
http://ww2.esn.net/~tbarwick
I just added a TI-86 page, Check it out!!!