I have implemented a very simple exception handler so that I can figure out what is causing the machine to fault.
The exception handler is telling me that the issue is an invalid instruction. It turns out, I forgot to add -march=68000 -mcpu=68000 to the C compiler flags. I added said flags and compared the binaries:
It turns out that EXTB is a 68020 instruction not present in the 68008. That was what was causing the fault.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.