<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ATokens</id>
	<title>TI-BASIC:Tokens - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3ATokens"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Tokens&amp;action=history"/>
	<updated>2026-04-20T01:30:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Tokens&amp;diff=766&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Tokens&amp;diff=766&amp;oldid=prev"/>
		<updated>2016-02-24T18:17:31Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Each command, variable, and operation on the TI-83 series calculators is represented by a &amp;quot;token.&amp;quot; This means that internally, the calculator does not store a command such as &amp;quot;cos(&amp;quot; as the letters c, o, s, and (. It stores a single number that it will later translate as &amp;quot;cos(&amp;quot; when necessary. In this case, the value is 196, but you most likely don&amp;#039;t need to know that.&lt;br /&gt;
&lt;br /&gt;
What you do need to know is that not all tokens are the same size. If there were 256 tokens or less, then you could fit all their values into 1 byte and be happy. Unfortunately, the TI-83 has more than 256 commands and variables. Therefore TI employed some trickery and made some tokens take up 1 byte (usually the most common ones, though they seem to have had a different idea of &amp;quot;common&amp;quot;) and some take up 2 bytes.&lt;br /&gt;
&lt;br /&gt;
What this means to you, as the programmer, is that the size of the program is determined by the number of commands, not the number of letters in it: a short line can take up more memory than a longer one if it uses a lot of commands. Furthermore, some commands will take up the memory of two commands rather than one, so a line with a few of these commands may take up as much memory as a line with more commands of the ordinary type.&lt;br /&gt;
&lt;br /&gt;
Lowercase letters are the epitome of memory wasters: at a single character, they each take up 2 bytes of memory. A program that uses a lot of lowercase letters can fill up all of RAM very quickly! This may be avoided by using uppercase letters instead, which only take up 1 byte each. You can also save memory by replacing words such as &amp;quot;If&amp;quot;, &amp;quot; or &amp;quot;, &amp;quot; and &amp;quot; with the appropriate commands, when displaying text. Such a command will only take up 1 byte, whereas the text may be much larger memory-wise. Lowercase letters are also not available on the original TI-83, so if you use them, your program will not work on it.&lt;br /&gt;
&lt;br /&gt;
= Token Tables =&lt;br /&gt;
&lt;br /&gt;
These token tables are unnecessary for TI-Basic programmers; they would most likely be of use for someone writing a TI-Basic program editor.&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:One_Byte_Tokens|One-byte tokens]]&lt;br /&gt;
* [[TI-BASIC:Variable_Tokens|Two-byte user variable tokens]]&lt;br /&gt;
* [[TI-BASIC:Statistics_Tokens|Two-byte statistical variable tokens]]&lt;br /&gt;
* [[TI-BASIC:Window_Tokens|Two-byte window and finance variable tokens]]&lt;br /&gt;
* [[TI-BASIC:Format_Tokens|Two-byte graph format tokens]]&lt;br /&gt;
* [[TI-BASIC:Miscellaneous_Tokens|Miscellaneous two-byte tokens]]&lt;br /&gt;
* [[TI-BASIC:Time_Tokens|TI-84+ only two-byte tokens]]&lt;br /&gt;
&lt;br /&gt;
There are several ways to insert a token given its hex value; all of them require an assembly program of some form. One of the easiest is to create an assembly program using [[TI-BASIC:Asmprgm|AsmPrgm]] followed by the hex codes you want to convert to tokens, assemble it using [[TI-BASIC:Asmcomp|AsmComp(]], and then unlock it (there are many programs that allow you to do this).[[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>