X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fm68000%2Fcpuextra.c;h=3b57590bba08bf64f1dbbac66e9a998b2e9240b7;hb=8fa19895c8308c0a1aee537f971c740eea4bab9e;hp=b29860cc1c9d7da0e76dcd3455d64134d4b74789;hpb=dadebc1a7525d196d5ee406be7b9d804d5f9945d;p=virtualjaguar diff --git a/src/m68000/cpuextra.c b/src/m68000/cpuextra.c index b29860c..3b57590 100644 --- a/src/m68000/cpuextra.c +++ b/src/m68000/cpuextra.c @@ -108,7 +108,19 @@ NB: Seems that when an address exception occurs, it doesn't get handled properly // void Exception(int nr, uint32_t oldpc, int ExceptionSource) { -printf("Exception #%i occurred!\n", nr); +char excNames[33][64] = { + "???", "???", "Bus Error", "Address Error", + "Illegal Instruction", "Zero Divide", "CHK", "TrapV", + "Privilege Violation", "Trace", "Line A", "Line F", + "???", "???", "Format Error", "Uninitialized Interrupt", + "???", "???", "???", "???", + "???", "???", "???", "???", + "Spurious/Autovector", "???", "???", "???", + "???", "???", "???", "???", + "Trap #" +}; + +printf("Exception #%i occurred! (%s)\n", nr, (nr < 32 ? excNames[nr] : (nr < 48 ? "Trap #" : "????"))); printf("Vector @ #%i = %08X\n", nr, m68k_read_memory_32(nr * 4)); //abort(); uint32_t currpc = m68k_getpc(), newpc;