--- BasiliskII/src/emul_op.cpp 1999/10/19 19:28:11 1.5 +++ BasiliskII/src/emul_op.cpp 1999/10/26 16:28:26 1.9 @@ -42,6 +42,10 @@ #include "extfs.h" #include "emul_op.h" +#if ENABLE_MON +#include "mon.h" +#endif + #define DEBUG 0 #include "debug.h" @@ -64,6 +68,10 @@ void EmulOp(uint16 opcode, M68kRegisters r->d[0], r->d[1], r->d[2], r->d[3], r->d[4], r->d[5], r->d[6], r->d[7], r->a[0], r->a[1], r->a[2], r->a[3], r->a[4], r->a[5], r->a[6], r->a[7], r->sr); +#if ENABLE_MON + char *arg[2] = {"rmon", NULL}; + mon(1, arg); +#endif QuitEmulator(); break; } @@ -422,7 +430,7 @@ void EmulOp(uint16 opcode, M68kRegisters r->d[0] = 0; break; default: - printf("FATAL: MemoryDispatch(%d): illegal selector\n", sel); + printf("FATAL: MemoryDispatch(%d): unimplemented selector\n", sel); r->d[0] = (uint32)-502; break; } @@ -493,6 +501,7 @@ void EmulOp(uint16 opcode, M68kRegisters r->d[0] = AudioDispatch(r->a[3], r->a[4]); break; +#if SUPPORTS_EXTFS case M68K_EMUL_OP_EXTFS_COMM: // External file system routines WriteMacInt16(r->a[7] + 14, ExtFSComm(ReadMacInt16(r->a[7] + 12), ReadMacInt32(r->a[7] + 8), ReadMacInt32(r->a[7] + 4))); break; @@ -500,6 +509,11 @@ void EmulOp(uint16 opcode, M68kRegisters case M68K_EMUL_OP_EXTFS_HFS: WriteMacInt16(r->a[7] + 20, ExtFSHFS(ReadMacInt32(r->a[7] + 16), ReadMacInt16(r->a[7] + 14), ReadMacInt32(r->a[7] + 10), ReadMacInt32(r->a[7] + 6), ReadMacInt16(r->a[7] + 4))); break; +#endif + + case M68K_EMUL_OP_BLOCK_MOVE: // BlockMove() replacement + memmove(Mac2HostAddr(r->a[1]), Mac2HostAddr(r->a[0]), r->d[0]); + break; default: printf("FATAL: EMUL_OP called with bogus opcode %08x\n", opcode); @@ -511,6 +525,10 @@ void EmulOp(uint16 opcode, M68kRegisters r->d[0], r->d[1], r->d[2], r->d[3], r->d[4], r->d[5], r->d[6], r->d[7], r->a[0], r->a[1], r->a[2], r->a[3], r->a[4], r->a[5], r->a[6], r->a[7], r->sr); +#if ENABLE_MON + char *arg[2] = {"rmon", NULL}; + mon(1, arg); +#endif QuitEmulator(); break; }