[Coco] BASIC program crashing Xroar emulator?

Allen Huffman alsplace at pobox.com
Thu Feb 27 12:31:48 EST 2025


On Feb 27, 2025, at 11:23 AM, William Astle via Coco <coco at maltedmedia.com> wrote:
> 
> Have you been running it from the 40 or 80 column screen? If so, that's probably why. The driver for handling output to the 40/80 column screen doesn't properly manage the memory map and if the stack ends up too low in memory, it gets swapped out while the 40/80 column screen is mapped in, leading to a system crash. String space and the address parameter to CLEAR are both above the stack.
> 
> This crash happens if the stack ends up below $4000 if memory serves.
> 
> If you aren't running from the 40/80 column screen, it may be some other weirdness triggering it.

This must be it. The first code line sets palettes and does a WIDTH 80. Then CLEAR 17000 and some DIMs.

Surely I ran into this and have a fixed version somewhere. What is the fix? CLEAR first from 32, then go 80?


More information about the Coco mailing list