indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
41 stars 19 forks source link

16x8 8bpp tiles appear to crash the emulator #60

Closed Yazwh0 closed 1 year ago

Yazwh0 commented 1 year ago

Example prg.

No dump file as it wrote a zero byte file.

Example.zip

indigodarkwolf commented 1 year ago

In the example program there, the first operation is a jmp ($FFFC), which is attempting to jump to the address in $04:$FFFC (bank 4 because it's in the BASIC interpreter). The address happens to be $FFFF, which is what it's setting the program counter to, and that's triggering the emulator's "system crash" logic, which attempts to create a dump file and then exits the emulator entirely.

indigodarkwolf commented 1 year ago

So it sounds like removing that instruction fixes the issue? Closing for now, if it turns out I was wrong then feel free to re-open.