ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/emul_op.cpp
(Generate patch)

Comparing BasiliskII/src/emul_op.cpp (file contents):
Revision 1.3 by cebix, 1999-10-12T20:00:44Z vs.
Revision 1.6 by cebix, 1999-10-21T22:39:50Z

# Line 39 | Line 39
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
# Line 295 | Line 296 | void EmulOp(uint16 opcode, M68kRegisters
296                          break;
297  
298                  case M68K_EMUL_OP_VIDEO_OPEN:           // Video driver functions
299 <                        r->d[0] = VideoOpen(r->a[0], r->a[1]);
299 >                        r->d[0] = VideoDriverOpen(r->a[0], r->a[1]);
300                          break;
301  
302                  case M68K_EMUL_OP_VIDEO_CONTROL:
303 <                        r->d[0] = VideoControl(r->a[0], r->a[1]);
303 >                        r->d[0] = VideoDriverControl(r->a[0], r->a[1]);
304                          break;
305  
306                  case M68K_EMUL_OP_VIDEO_STATUS:
307 <                        r->d[0] = VideoStatus(r->a[0], r->a[1]);
307 >                        r->d[0] = VideoDriverStatus(r->a[0], r->a[1]);
308                          break;
309  
310                  case M68K_EMUL_OP_SERIAL_OPEN:          // Serial driver functions
# Line 492 | Line 493 | void EmulOp(uint16 opcode, M68kRegisters
493                          r->d[0] = AudioDispatch(r->a[3], r->a[4]);
494                          break;
495  
496 + #if SUPPORTS_EXTFS
497 +                case M68K_EMUL_OP_EXTFS_COMM:           // External file system routines
498 +                        WriteMacInt16(r->a[7] + 14, ExtFSComm(ReadMacInt16(r->a[7] + 12), ReadMacInt32(r->a[7] + 8), ReadMacInt32(r->a[7] + 4)));
499 +                        break;
500 +
501 +                case M68K_EMUL_OP_EXTFS_HFS:
502 +                        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)));
503 +                        break;
504 + #endif
505 +
506                  default:
507                          printf("FATAL: EMUL_OP called with bogus opcode %08x\n", opcode);
508                          printf("d0 %08lx d1 %08lx d2 %08lx d3 %08lx\n"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines