Omnimaga

Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: Calcaholic on July 07, 2011, 02:06:48 pm

Title: strange occurance concerning lowercase letters
Post 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...
Title: Re: strange occurance concerning lowercase letters
Post by: leafy on July 07, 2011, 02:07:23 pm
Do you mind posting your program, or at least the bit that you're having trouble with?
Title: Re: strange occurance concerning lowercase letters
Post by: Happybobjr on July 07, 2011, 02:07:57 pm
lowercase letters are two byte instead of 1, so it is reading the 1st byte now the whole.
(might be a little off)
Title: Re: strange occurance concerning lowercase letters
Post by: Deep Toaster on July 07, 2011, 02:27:28 pm
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).
Title: Re: strange occurance concerning lowercase letters
Post by: Juju on July 07, 2011, 03:59:56 pm
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