Author Topic: TIOS String Displaying - Tokens  (Read 1822 times)

0 Members and 1 Guest are viewing this topic.

Offline Mighty Moose

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +4/-0
    • View Profile
TIOS String Displaying - Tokens
« on: October 06, 2010, 07:44:23 pm »
How does the TIOS know what tokens are correct to display in a string?

(ex.
Say I have the string in the memory:
Code: [Select]
T >DMS H Pic1 E Abs( G A M EHow the does the TIOS correctly display the difference between 1- and 2-byte tokens?
Does it just put a 00 in the first byte or are there certain numbers? (I've been playing around with Calcsys).)

On a somewhat related note:
Why is calcsys displaying what is in the screenshot for the specified token?

Let me know if I need to clarify. Thx.
« Last Edit: October 06, 2010, 07:48:43 pm by Mighty Moose »
Cheers!
I beta test, so...yeah.  PM me if you want me to test anything :D.

Almost only counts in horseshoes and handgrenades.

Cogito ergo sum.

Calcs:
TI-84+, OS 2.43, Boot Code 1.02, 128k RAM
TI-84+SE VSC, OS 2.43, Boot Code 1.00, 128k RAM  (I'm spoiled :P)
TI-81, OS 1.6K (only borrowed)
Casio fx-CG10 (Prizm), OS 01.04.0200
TI-Nspire Clickpad, OS 1.4
TI-Nspire Clickpad, OS 3.1.0.392
TI-Nspire CAS Clickpad, OS 1.6.10110 (!?) now OS 3.1.0.392

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: TIOS String Displaying - Tokens
« Reply #1 on: October 06, 2010, 07:49:59 pm »
http://tibasicdev.wikidot.com/one-byte-tokens

This page should be of some help :) The calc has certain numbers that mean "The Next Byte is Part of a 2 Byte Token K?".  When it sees those numbers, it uses the next byte as the token.  As for the screenshot, FC is not a valid starter for a 2 byte token, so it is likely looking in the wrong spot to find a token that doesnt exist :)

Offline Mighty Moose

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 141
  • Rating: +4/-0
    • View Profile
Re: TIOS String Displaying - Tokens
« Reply #2 on: October 06, 2010, 07:53:01 pm »
That make sense (I think).  I was looking at some unlocked assembly programs in the program editor and in calcsys trying to figure out how it displayed the correct tokens.  Thanks again ;)
Cheers!
I beta test, so...yeah.  PM me if you want me to test anything :D.

Almost only counts in horseshoes and handgrenades.

Cogito ergo sum.

Calcs:
TI-84+, OS 2.43, Boot Code 1.02, 128k RAM
TI-84+SE VSC, OS 2.43, Boot Code 1.00, 128k RAM  (I'm spoiled :P)
TI-81, OS 1.6K (only borrowed)
Casio fx-CG10 (Prizm), OS 01.04.0200
TI-Nspire Clickpad, OS 1.4
TI-Nspire Clickpad, OS 3.1.0.392
TI-Nspire CAS Clickpad, OS 1.6.10110 (!?) now OS 3.1.0.392

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: TIOS String Displaying - Tokens
« Reply #3 on: October 06, 2010, 07:54:32 pm »
Yep, it assumes it's a one-byte token unless it's a byte that the TI-OS uses to designate the start of a 2-byte token. And nice job on that screenshot ... that's probably an area off the token table that you accessed, as Builderboy said, because you put in a weird combo.