42 |
|
#include "extfs.h" |
43 |
|
#include "emul_op.h" |
44 |
|
|
45 |
+ |
#if ENABLE_MON |
46 |
+ |
#include "mon.h" |
47 |
+ |
#endif |
48 |
+ |
|
49 |
|
#define DEBUG 0 |
50 |
|
#include "debug.h" |
51 |
|
|
68 |
|
r->d[0], r->d[1], r->d[2], r->d[3], r->d[4], r->d[5], r->d[6], r->d[7], |
69 |
|
r->a[0], r->a[1], r->a[2], r->a[3], r->a[4], r->a[5], r->a[6], r->a[7], |
70 |
|
r->sr); |
71 |
+ |
#if ENABLE_MON |
72 |
+ |
char *arg[2] = {"rmon", NULL}; |
73 |
+ |
mon(1, arg); |
74 |
+ |
#endif |
75 |
|
QuitEmulator(); |
76 |
|
break; |
77 |
|
} |
430 |
|
r->d[0] = 0; |
431 |
|
break; |
432 |
|
default: |
433 |
< |
printf("FATAL: MemoryDispatch(%d): illegal selector\n", sel); |
433 |
> |
printf("FATAL: MemoryDispatch(%d): unimplemented selector\n", sel); |
434 |
|
r->d[0] = (uint32)-502; |
435 |
|
break; |
436 |
|
} |
501 |
|
r->d[0] = AudioDispatch(r->a[3], r->a[4]); |
502 |
|
break; |
503 |
|
|
504 |
+ |
#if SUPPORTS_EXTFS |
505 |
|
case M68K_EMUL_OP_EXTFS_COMM: // External file system routines |
506 |
|
WriteMacInt16(r->a[7] + 14, ExtFSComm(ReadMacInt16(r->a[7] + 12), ReadMacInt32(r->a[7] + 8), ReadMacInt32(r->a[7] + 4))); |
507 |
|
break; |
509 |
|
case M68K_EMUL_OP_EXTFS_HFS: |
510 |
|
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))); |
511 |
|
break; |
512 |
+ |
#endif |
513 |
+ |
|
514 |
+ |
case M68K_EMUL_OP_BLOCK_MOVE: // BlockMove() replacement |
515 |
+ |
memmove(Mac2HostAddr(r->a[1]), Mac2HostAddr(r->a[0]), r->d[0]); |
516 |
+ |
break; |
517 |
|
|
518 |
|
default: |
519 |
|
printf("FATAL: EMUL_OP called with bogus opcode %08x\n", opcode); |
525 |
|
r->d[0], r->d[1], r->d[2], r->d[3], r->d[4], r->d[5], r->d[6], r->d[7], |
526 |
|
r->a[0], r->a[1], r->a[2], r->a[3], r->a[4], r->a[5], r->a[6], r->a[7], |
527 |
|
r->sr); |
528 |
+ |
#if ENABLE_MON |
529 |
+ |
char *arg[2] = {"rmon", NULL}; |
530 |
+ |
mon(1, arg); |
531 |
+ |
#endif |
532 |
|
QuitEmulator(); |
533 |
|
break; |
534 |
|
} |