[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect EOFs in SEQ-files using M/C?



On Mon, 09 Sep 2002 00:24:43 +0000, Matthew Montchalin wrote:

> [BASIC tokens] The concept behind tokens is that you save space that
> way.

I think that's a nice side effect. The main reason for using tokens is
execution speed of the interpreter which has just to take a look at *one*
byte and can use a jump table to the routine that executes that particular
BASIC command. Just imagine how slow a program becomes if the interpreter
has to compare the commands as strings while executing.

> What's strange, is using $ff to represent pi, if memory serves me right.
> Um, it's not $5f is it?  -And surely not $5c, which is - I think - the
> British pound character.

As Nathan already wrote tokens in Commodore BASIC are 128-255 (decimal) so
the interpreter can take a look at the highest bit to decide if it's a
token or PETSCII.

Ciao,
	Marc 'BlackJack' Rintsch