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 turbo-pascal-compiled binaries to run #62

Closed skx closed 5 months ago

skx commented 5 months ago

This pull-request closes #60, by allowing binaries compiled by turbo-pascal to execute - rather than aborting with "out of memory" errors.

It turns out the generated binaries look at the contents of low-ram to see how much RAM is free, by looking for the address of BDOS in a jump instruction. If that was unset they believed there was no free RAM.