BASIC Token Decoder

What are BASIC tokens ?

BASIC tokens are the way the FX-880P stores the BASIC commands in memory. It's a kind of shortcut, and each command is 2 bytes long.
One advantage is, that less memory is used to store programs, an other is that the commands don't need to be parsed on execution, what means that a program using tokens runs faster.

History of this program

The first version of this program I wrote in BASIC, and it was executed on the FX-880P itself (very slow)
The source code is lost since ages, because at that time I had no RS-232 interface and had to save every program using pencil and paper ...
When I got my RS-232 interface, I decided that for faster decoding to implement this in C on my Linux host, and somehow forgot afterwards to store the original BASIC program :-/

How to decode own programs ?

If you want, for some reason, decode your own programs stored in RAM, you have to find out their start address first. The start address changes every time you edit your program. Have I look at the control section of the memory map, to see how you can figure out the start address.

Decode the system ROM

One address to start off is $6000:$058F , where internal test routines are stored in the ROM of the Casio FX-880P (they are interesting to learn undocumented things :-)
You can also decode the Library functions of the ROM, just experiment with the start address a little bit...
Don't ask me for images of the system ROM ! Since I assume they are protected by copyright, I cant give it to you.
Anyway, its very easy to dump the ROM if you own a Casio FX-880P, and in which case else it would make sense to experiment with the ROM code ?