[Coco] BASIC program crashing Xroar emulator?
William Astle
lost at l-w.ca
Thu Feb 27 12:23:35 EST 2025
> I was able to get it to work by altering the CLEAR 17000, though there is only that one text file (the contents.txt) so I have not put a real txt on it to match that index and see if that part works.
>
> I wonder if there is some string space bug in the CC3 — but, if so, how did this work back in 1995?
It won't be a string space bug - handling that didn't change in the Coco3.
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.
More information about the Coco
mailing list