The 1K BASIC interpreter is in a working state, with the following caveats:
- Division is implemented using repeated subtraction, so it is slow. The RND function is slow for the same reason. I hope to replace the division subroutine with a faster version sometime.
- The syntax checker doesn’t give an error if there are extra letters after a keyword e.g. PRINTIFY will work just as well as PRINT.
It runs a couple of example programs okay (the classic ‘Lunar lander’ and ‘Reverse’ games). I’m still working on a comprehensive automatic regression test suite.
The code is 1012 bytes long - 12 bytes short of 1K. Some of these free bytes would be used up when porting PutChar, because it is likely that a ‘ready for output’ test will be needed before outputting a character.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.