39 |
|
#include "video.h" |
40 |
|
#include "audio.h" |
41 |
|
#include "ether.h" |
42 |
+ |
#include "extfs.h" |
43 |
|
#include "emul_op.h" |
44 |
|
|
45 |
|
#define DEBUG 0 |
435 |
|
ClearInterruptFlag(INTFLAG_60HZ); |
436 |
|
if (HasMacStarted()) { |
437 |
|
|
438 |
< |
// Mac has started, execute video, ADB and Time Manager interrupt functions |
438 |
> |
// Mac has started, execute all 60Hz interrupt functions |
439 |
|
ADBInterrupt(); |
440 |
|
TimerInterrupt(); |
441 |
|
VideoInterrupt(); |
442 |
+ |
SonyInterrupt(); |
443 |
+ |
DiskInterrupt(); |
444 |
+ |
CDROMInterrupt(); |
445 |
|
|
446 |
|
// Call DoVBLTask(0) |
447 |
|
if (ROMVersion == ROM_VERSION_32) { |
493 |
|
r->d[0] = AudioDispatch(r->a[3], r->a[4]); |
494 |
|
break; |
495 |
|
|
496 |
+ |
case M68K_EMUL_OP_EXTFS_COMM: // External file system routines |
497 |
+ |
WriteMacInt16(r->a[7] + 14, ExtFSComm(ReadMacInt16(r->a[7] + 12), ReadMacInt32(r->a[7] + 8), ReadMacInt32(r->a[7] + 4))); |
498 |
+ |
break; |
499 |
+ |
|
500 |
+ |
case M68K_EMUL_OP_EXTFS_HFS: |
501 |
+ |
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))); |
502 |
+ |
break; |
503 |
+ |
|
504 |
|
default: |
505 |
|
printf("FATAL: EMUL_OP called with bogus opcode %08x\n", opcode); |
506 |
|
printf("d0 %08lx d1 %08lx d2 %08lx d3 %08lx\n" |