[Coco] [Color Computer] Question about BASIC coding guidelines

Darren A mechacoco at gmail.com
Thu Oct 30 14:54:37 EDT 2008


On 10/30/08, James Diffendaffer  wrote:
>
> I know some BASICs tokenize the number (store it as a 16bit integer)
> which makes the code smaller and faster (ok... if you don't get out of
> single digit line numbers it might not be smaller).  I don't remember
> what the CoCo does.
>

The CoCo does not tokenize the line numbers following GOTO, GOSUB and
THEN. It performs an ASCII to Integer conversion every time such a
statement is executed.  Likewise, literal numbers in expressions must
go through an even lengthier ASCII to FP conversion.

Darren



More information about the Coco mailing list