Omnimaga
Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: Calcaholic on July 07, 2011, 02:06:48 pm
-
I just was witing a program in Axe to read out a simple ti-basic program.
But when I used lower case (enabled via the Axe-Parser options), I got for all of the lower case the same decimal equivalence: 187.
I wonder if anybody knows about the reason for that?
It is not possible that all the lower case are encoded with the same value I guess...
-
Do you mind posting your program, or at least the bit that you're having trouble with?
-
lowercase letters are two byte instead of 1, so it is reading the 1st byte now the whole.
(might be a little off)
-
lowercase letters are two byte instead of 1, so it is reading the 1st byte now the whole.
(might be a little off)
That's exactly it. TI-BASIC programs are stored as tokens, not characters. Characters are always one byte, but tokens can be up to two. Lowercase letters in particular are two-byte tokens that have $BB as a first byte, and lo, $BB in decimal is 187!
I suggest you take a look at this guide (http://tibasicdev.wikidot.com/tokens). In particular the $BB tokens are listed here (http://tibasicdev.wikidot.com/miscellaneous-tokens).
-
Also worth nothing that all the lowercases letters have the same getKeyr values.
http://www.omnimaga.org/index.php?action=ezportal;sa=page;p=21