skx / cpmulator

Golang CP/M emulator for zork, Microsoft BASIC, Turbo Pascal, Wordstar, lighthouse-of-doom, etc
MIT License
98 stars 3 forks source link

Allow BBC BASIC to run #132

Closed skx closed 2 months ago

skx commented 2 months ago

BBC BASIC is an interesting dialect, because it has a built-in assembler, and allows DIR, TYPE, and more to be executed.

Documentation is good, the program is reasonably robust. By default it was doing some weird thing where it expected the zero-flag to be set as a result of CP/M calls - so I had to patch it to avoid that.

The binary was added to cpm-dist:

The only actual change I had to make here was to implement function 40, F_WRITEZF, which I faked via the existing function.

This closes #129, allowing the BASIC to run and load/save binaries.