|[hatari-devel] Possible bug in 060 exception stack frames|
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
while working on a standalone version of an installable FPSP, i did some tests with Hatari. Currently, the test program crashes with an illegal instruction. The reason seems to be that, when executing
the emulation package fetches an opcode of 0x0000 instead of the real 0x4c27
Could there be a problem with the opcode being placed at the wrong location when using predecrement mode of stackpointer?
Attached is the test program that i'm using. It was built using itest.sa and ftest.sa from the package, only thing that needed to be done was to implement the callouts to print a string/number (and the usual startup code of course). Results are both printed on screen, and written to fpsptst.txt
It is only intended to be run on 060, with the FPSP installed (could be the attached one, or one already built into ROM, like for Milan/Hades/CT60). The test program (fpsptst.tos) currently does not check that, but the emulation package (fpsp060.prg) checks for running on a 040 at least.