Hi 

I'm trying to figure out the structure of a BASIC file. I have a Token
table.

I figured the following out:
#FF     - 1 byte start of file

x times the following:
xxxx    - 2 bytes Start adress of next line
xxxx    - 2 bytes line number
data    - x bytes actual line
#00     - 1 byte end of line marker

#0000   - 2 bytes end of file

The only trouble is I don't know how the additional data of the commands are
built. For example: #98 is POKE.
But how do I interpret the following data? I discovered that :
#0C+2bytes = &Hxxxx
#0F+1byte is a decimal (0-255)
#1C+2bytes is a decimal (0-65535)
So: 98 0C FF FF 2C 0F FF 
would be POKE &HFFFF,255, but
98 0C FF FF 2C 0C FF 00 is
POKE &HFFFF,&HFF
(P.s. Yes, I have a SONY...)

Is there more documentation about this, or do I have to figure it all out?

Greetz,
Patrick

****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to