- State: Experimental
This interpreter is planned as extension of the existing Basic-Language of the Mega65. The goal is to add some control structures known from current programming languages without losing the interactive experience you know and love on these machines. It is therefore not a cross-compiler or any pre-compilation involved.
This project bases on the genius work by lotabout who wrote a great tutorial about how to write an interpreter which results in a C-Interpreter which was able to execute the interpreter itself (see: write-a-C-interpreter. After examining several various existing interpreters, it was the only one that was small enough (and without unresolvable dependencies) to be cross compileable on the Mega65. I therefore chose it for my project.
First clone this project with all submodules:
git clone --recurse-submodules https://github.com/eilers/m65script.git
You need the following tools in your PATH
- mos-mega65-clang: You can install it from here
- petcat: It installs with VICE
- cc1541: This is not c1541 that comes with VICE. The prject can be found here. We need this in order to create d81 disk images.
- xemu: A current version of the XEMU in order to run this program. You will find it here.
- The latest version of the Mega65 ROM.
If all of the tools are installed, you can compile and run the interpreter by simply enter
make run
This will comple the project, create an autostarting d81 image and start XEMU wit this disk mounted.