Close

Exception Handlers

A project log for 68008 Calculator

Scientific calculator based on the 68008 microprocessor

carver-harrisonCarver Harrison 08/30/2020 at 23:530 Comments

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