@gazsp
This means that TRAP #0 has been executed by the processor, right?
Correct.
So why would this instruction occur in a game for example?
Typically old (A500 era) games would use this to get into supervisor mode. There's some nice exec/Supervisor call for that, but I guess the coders didn't know about it back then.
I'm trying to run a game on an 040 but I just get this guru every time it starts.
Most likely the game in question pokes vector table without knowlege about the vector base register (VBR). Basically it pokes the vector to wrong address and thus trap #0 will not give supervisor, but rather crash.
Enforcing the VBR back to address 0 might help (or booting without startup-sequence).
However, if the game is using trap #0 tricks, then it might also fail on anything higher than 68000 in general (abusing stackframes etc). In these cases the only way to run it is to use WHDLoad.