[Coco] BASIC irony
tim lindner
tlindner at ix.netcom.com
Sat Aug 14 15:15:37 EDT 2004
tim lindner <tlindner at ix.netcom.com> wrote:
> I fired up the emulator and found out that Color BASIC seems to crap out
> in the rage of 64XXX. 63999 is a valid line number, but anything higher
> returns an error. I can't even RENUM the program higher than 63999
>
> Interesting. I'll have to look into the source regarding this.
So I looked into the source. It seems 63999 is the largest Color BASIC
line number becuase allowing any larger numbers could result in the
ASCII to integer code overflowing.
I did try hacking a larger line number and the program ran fine: if you
can let the program fall thru to the large line numbers. Issuing a GOTO
to a large line number results in a ?SN ERROR.
Also trying to delete or EDIT a existing large line numbered line causes
a ?SN ERROR. RENUM does work as expected.
Another break from the Dartmuth standard is that Color BASIC _will_ list
lines larger than 63999.
--
tim lindner
tlindner at ix.netcom.com
More information about the Coco
mailing list