Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 3382

8-bit acorn software: other • Re: Using BASIC keywords & tokens in BASIC roms

$
0
0
There isn't one, but you'd always have the possibility of ending up in a situation anyway, if there's no BASIC ROM in the machine, or if your ROM is a language ROM and it's running in the 6502 2nd processor. Easiest way is to include your own. This is what the various versions of the BASIC Editor do.

If you insist anyway, scanning for the AND at the start of the token table is probably indeed the easiest way! To avoid false positives you should probably search for a few more bytes than just that - I think the token tables in the various BASIC versions all start with the same sequence of bytes for AND and ABS and so on, and newer additions come later in the table.

--Tom

Statistics: Posted by tom_seddon — Sun Jun 08, 2025 5:36 pm



Viewing all articles
Browse latest Browse all 3382

Trending Articles