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

James Diffendaffer jdiffendaffer at yahoo.com
Thu Oct 30 14:19:26 EDT 2008


--- In ColorComputer at yahoogroups.com, shadow at ... wrote:

> Not sure if CoCo BASIC does this or not, but in other TRS-80 BASICs 
> the line numbers for THEN, GOTO, GOSUB, etc are stored as literals.
> 
> Thus "GOTO 1000" takes two more bytes than "GOTO 10".
> 
> This makes a speed difference as well. 

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.





More information about the Coco mailing list