4 ms·
The Apple ][ basic interpreter placed its "get next token" routine down in the first 255 bytes of the computer's memory. Being there allowed for the machine ins
by rbobby 4mo ago
The Apple ][ basic interpreter placed its "get next token" routine down in the first 255 bytes of the computer's memory. Being there allowed for the machine instructions to be fetched twice as fast as "high memory". And "get next token" is definitely a good guess for hotpath.
- IcePic 4mo agoC64 also has a token parsing routine in zeropage.
- timbit42 4mo agoI've benchmarked Applesoft and Commodore BASIC quite a bit and they benchmark exactly the same, so I'm not surprised. Both systems run at 1.023 MHz in NTSC. Of course, they are both derived from Microsoft's 6502 BASIC. I'm sure they're not cycle exact but they are close enough that BASIC doesn't show any difference.