Author Topic: strange occurance concerning lowercase letters  (Read 2168 times)

0 Members and 1 Guest are viewing this topic.

Offline Calcaholic

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +2/-0
    • View Profile
strange occurance concerning lowercase letters
« 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...

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: strange occurance concerning lowercase letters
« Reply #1 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?
In-progress: Graviter (...)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: strange occurance concerning lowercase letters
« Reply #2 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)
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: strange occurance concerning lowercase letters
« Reply #3 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. In particular the $BB tokens are listed here.




Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: strange occurance concerning lowercase letters
« Reply #4 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
« Last Edit: July 07, 2011, 04:00:15 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.