dirkwhoffmann / Moira

A Motorola 68000 emulator written in C++
https://dirkwhoffmann.github.io/Moira
Other
106 stars 13 forks source link

68030 bus error exception frame format #14

Closed dirkwhoffmann closed 1 year ago

dirkwhoffmann commented 1 year ago

Now I'm at the point where I need to create the bus error exception frame. Unfortunately, the user manual is very unspecific about what is really saved on the stack:

Bildschirmfoto 2022-09-22 um 20 53 40

The most important entry is obviously the PC, because this entry is used by the RTE instruction to jump back into the program code. It has to point at the offending instruction. But what about the others? Does anybody know what's behind all those "internal registers"? I haven't been able to find more detailed information about the exception frame format.

mras0 commented 1 year ago

I don't know about the internal registers, but there's some info in 8.2 (and a bit in 8.1.2). Also seems like there's a whdload QA slave that was used to check WinUAE's implementation: https://eab.abime.net/showpost.php?p=859567&postcount=120 (there's also more discussion later in the thread). Not sure how easy it would be to use that for testing though.

dirkwhoffmann commented 1 year ago

Closed as the MMU project is put on hold.

For reference: Commit 115f803 ist the last commit containing MMU code.