Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
Ah, ok, cool. So is there no footer? I like the error checking, that makes life a little easier.
No footer either, if I remember correctly.
I noticed in a very simple program I typed in (6 newlines, a comma, and that's it), that 3 null bytes were at the end.
I took the csv file and converted it into an XML file that tokens could handle, and here's the output of detokenizing that g3m file:
Note all the "NOT FOUND"s. This is where it was unable to find a token.

Ok, so I made some changes:

89: +
0E: ->
20: <space>
22: " (<double quote>)
$30: 0
$31: 1
$32: 2
$33: 3
$34: 4
$35: 5
$36: 6
$37: 7
$38: 8
$39: 9
$41: A
$42: B
$43: C
$44: D
$45: E
$46: F
$47: G
$48: H
$49: I
$4A: J
$4B: K
$4C: L
$4D: M
$4E: N
$4F: O
$50: P
$51: Q
$52: R
$53: S
$54: T
$55: U
$56: V
$57: W
$58: X
$59: Y
$5A: Z
E5E2: <3
LocusOff <-> Locate
Goto <-> Getkey
IfEnd -> If
Imp -> IfEnd
{angle measure} -> :
Err:520 <-> !=
Err:520 <-> &lt;
Err:520 <-> &gt;
{right triangle} -> =
Receive38k <-> Red

And that made it so I could detokenize the moving heart program of mine:

While 1
If K!=0:Then
Locate X,Y," "
If K=27 And X<20
If K=38 And X>1
If K=28 And Y>1
If K=37 And Y<7
Red Locate X,Y,"<3 "
WhileEnd [NOT FOUND: 00][NOT FOUND: 40]IM

There's some sort of footer, the programs ends at the WhileEnd.
But, LocusOff can't be the same of Locate.

In my spreadsheet Locate is 85 while LocusOff is F710. Granted there's others, but still. What were the codes representing before you updated them?
They're not the same, I switched their values and it worked. Locate is F710.
Hm. I'm not sure how those got switched. Anyways, thanks for that Smile
Once you get the others, could I get a list of just the new ones?
The new ones, as in the ones other than the single character A-#? Sure.
Yeah, everything not on the original list or what I said.
I'm getting ready to shoehorn Prizm support into SourceCoder, doing all kinds of cleanup and consolidation. Are there indeed one- and two-byte tokens, just like in TI-BASIC?
I haven't fully compiled the list of the last tokens for _player to parse, but there are tokens with values of ## and #### already.
comicIDIOT wrote:
I haven't fully compiled the list of the last tokens for _player to parse, but there are tokens with values of ## and #### already.
Nifty. I'm hoping that they follow the same patterns as the TI-BASIC tokens, namely that no one-byte token has the same value as the first half of any two-byte sequence. If that holds true, then I can do tokenization and detokenization with no changes to my existing routines for the process.
It doesn't look that way. Here are the first two that start with 7F.

D Var,7F
Xmax ,7F00

It continues for 188 rows, including these two.
What endianness are the two-byte tokens, though? If they're little endian, then $7F00 becomes $00,$7F, and we have no problem.
KermMartian wrote:
What endianness are the two-byte tokens, though? If they're little endian, then $7F00 becomes $00,$7F, and we have no problem.

In reponse to a question about Casio Tokens, Qwerty.55 responds that they are Big Endian. Hmm.

Apparently, you can save-as a program. Sadly, you don't get any options. It saves as a TXT. Here's a list of tokens the calculator basically gave me.




I've sent five programs off to _player to be HEX'd for me. Until I get those back, heres a photo for each program showing all the tokens. Not the best representations, as I made them so I could easily spot missing tokens. It actually works out, that I was able to line up the characters exactly to the menus I got these from with little editing in the program. I got rid of spaces and breaks under "MATH" so I could fit it one screen.

I'm 50% sure I mixed up Greek & Latin here.

The code block above.
To permanently lock programs (aside from being able to unlock them with hex editors), just use a non-typeable character as the password. I recommend 0xE6A0.
I saw the option to lock a program but haven't had the chance to play with it.

I'm assuming unlocking programs would require that key?
Yes, it requires the key to exactly match in order to unlock it.
Would it be helpful to you guys to have the program I made that dumps out a txt file?

Also, we've discovered some things wrong with the list:
CoordOn -> F7C3
Break -> F70D
xyLine -> F751

(Thatnks JosJuice for helping out with these).

Also, for the record, it seems that with the last four bytes of the program, you ignore anything after the first 00. So, if the last four bytes are "31003131", that's just "1" (Thanks QWERTY).
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 4
» All times are GMT - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum