<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bitchin100.com/wiki/index.php?action=history&amp;feed=atom&amp;title=BASIC_Variable_Format</id>
	<title>BASIC Variable Format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bitchin100.com/wiki/index.php?action=history&amp;feed=atom&amp;title=BASIC_Variable_Format"/>
	<link rel="alternate" type="text/html" href="https://bitchin100.com/wiki/index.php?title=BASIC_Variable_Format&amp;action=history"/>
	<updated>2026-04-12T17:14:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://bitchin100.com/wiki/index.php?title=BASIC_Variable_Format&amp;diff=2559&amp;oldid=prev</id>
		<title>Jhoger at 19:39, 23 August 2012</title>
		<link rel="alternate" type="text/html" href="https://bitchin100.com/wiki/index.php?title=BASIC_Variable_Format&amp;diff=2559&amp;oldid=prev"/>
		<updated>2012-08-23T19:39:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://bitchin100.com/wiki/index.php?title=BASIC_Variable_Format&amp;amp;diff=2559&amp;amp;oldid=2558&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Jhoger</name></author>
	</entry>
	<entry>
		<id>https://bitchin100.com/wiki/index.php?title=BASIC_Variable_Format&amp;diff=2558&amp;oldid=prev</id>
		<title>Jhoger: New page: Per Ron Wiesen, from a discussion on the Bitchin100 Mailing List:  &lt;pre&gt; Variable Format -  (RRW) For M100: The format of BASIC variables as they appear in the variable table is shown here...</title>
		<link rel="alternate" type="text/html" href="https://bitchin100.com/wiki/index.php?title=BASIC_Variable_Format&amp;diff=2558&amp;oldid=prev"/>
		<updated>2012-08-21T17:28:06Z</updated>

		<summary type="html">&lt;p&gt;New page: Per Ron Wiesen, from a discussion on the Bitchin100 Mailing List:  &amp;lt;pre&amp;gt; Variable Format -  (RRW) For M100: The format of BASIC variables as they appear in the variable table is shown here...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Per Ron Wiesen, from a discussion on the Bitchin100 Mailing List:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Variable Format -  (RRW)&lt;br /&gt;
For M100:&lt;br /&gt;
The format of BASIC variables as they appear in the variable table is&lt;br /&gt;
shown here.  Where BASIC encounters a variable name, it searches the&lt;br /&gt;
variable table for the variable name of the appropriate variable type:&lt;br /&gt;
numeric double-precision, numeric single-precision, numeric integer,&lt;br /&gt;
or string.  Where the name is not found, BASIC expands the table and&lt;br /&gt;
appends the variable at the end of the variable table (i.e, defines the&lt;br /&gt;
previously undefined variable).  Where the name is found, the variable&lt;br /&gt;
content follows in the case of numeric variable types and a descriptor&lt;br /&gt;
of content follows in the case of the string variable type.&lt;br /&gt;
 &lt;br /&gt;
Each varible defined within the variable table consumes a 3-byte header&lt;br /&gt;
and from 2 to 8 more bytes depending on the variable type.  The header&lt;br /&gt;
contains a &amp;quot;Type&amp;quot; byte and a &amp;quot;Name&amp;quot; in 2-character form.  The value of&lt;br /&gt;
&amp;quot;Type&amp;quot; also serves as a skip-count (relative to first byte of content)&lt;br /&gt;
to the next (if any) header.&lt;br /&gt;
 &lt;br /&gt;
                     +-----------+----------+----------+-----------+&lt;br /&gt;
                     |     DP    |    SP    |  Integer |  String   |&lt;br /&gt;
                     |   Format  |  Format  |  Format  |  Format   |&lt;br /&gt;
---------------------+-----------+----------+----------+-----------+&lt;br /&gt;
 Byte  0   Type      |     8     |    4     |    2     |    3      |&lt;br /&gt;
 Byte  1   Name, 1st character                                     |&lt;br /&gt;
 Byte  2   Name, 2nd character - NUL for 1-character names         |&lt;br /&gt;
---------------------+-----------+----------+----------+-----------+&lt;br /&gt;
 Byte  3&amp;lt;-&amp;lt;(VARPTR)  |   S &amp;amp; E   |  S &amp;amp; E   |   LSB    |    Len    |&lt;br /&gt;
 Byte  4             |   BCD M   |  BCD M   |   MSB    | Addr Low  |&lt;br /&gt;
 Byte  5             |   BCD #   |  BCD #   |    -     | Addr High |&lt;br /&gt;
 Byte  6             |   BCD #   |  BCD L   |    -     |     -     |&lt;br /&gt;
 Byte  7             |   BCD #   |    -     |    -     |     -     |&lt;br /&gt;
 Byte  8             |   BCD #   |    -     |    -     |     -     |&lt;br /&gt;
 Byte  9             |   BCD #   |    -     |    -     |     -     |&lt;br /&gt;
 Byte 10             |   BCD L   |    -     |    -     |     -     |&lt;br /&gt;
---------------------+-----------+----------+----------+-----------+&lt;br /&gt;
 &lt;br /&gt;
  LSB =  Least significant byte of intger.&lt;br /&gt;
  MSB =  Most significant byte of integer.  Bit 7 contains the sign&lt;br /&gt;
         of the integer.&lt;br /&gt;
BCD L =  Least significant BCD byte, contains least significant pair&lt;br /&gt;
         of 4-bit BCD digits.&lt;br /&gt;
BCD H =  Most significant BCD byte, contains most significant pair of&lt;br /&gt;
         4-bit BCD digits.&lt;br /&gt;
BCD # =  Middle BCD bytes.  Each digit of the number is represented&lt;br /&gt;
         by one of the 4-bit values in the two nibbles in each byte.&lt;br /&gt;
S &amp;amp; E =  Sign and exponent of each number.  Bit 7 contains the sign&lt;br /&gt;
         of the floating point number.  Bits 0-5  determine where the&lt;br /&gt;
         decimal point is to be inserted.  For example, if this byte&lt;br /&gt;
         contained a 65, the sign would be positive (value 64) and the&lt;br /&gt;
         decimal point would be placed after the 1st digit (value 1),&lt;br /&gt;
         and before the second digit (#.############# in DP Format or&lt;br /&gt;
         #.##### is SP Format).  The purpose of bit 6 is unknown, but&lt;br /&gt;
         it may be a marker for the &amp;quot;currently selected&amp;quot; variable.&lt;br /&gt;
 Addr =  Address to string content.  This can be to a string constant&lt;br /&gt;
         within a BASIC program statement (e.g., V$ = &amp;quot;constant&amp;quot;) or&lt;br /&gt;
         it can be within the string area BASIC (e.g., V$ = SPACE$(2).&lt;br /&gt;
  Len =  Length of string.  The LEN(var$) function returns this value.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Model T Developer Reference]]&lt;/div&gt;</summary>
		<author><name>Jhoger</name></author>
	</entry>
</feed>