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.20 by cebix, 2000-09-25T17:54:00Z vs.
Revision 1.26 by cebix, 2001-07-09T11:21:59Z

# Line 1 | Line 1
1   /*
2   *  emul_op.cpp - 68k opcodes for ROM patches
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 68 | Line 68 | void EmulOp(uint16 opcode, M68kRegisters
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 +                        VideoQuitFullScreen();
72   #ifdef ENABLE_MON
73                          char *arg[4] = {"mon", "-m", "-r", NULL};
74                          mon(3, arg);
# Line 439 | Line 440 | void EmulOp(uint16 opcode, M68kRegisters
440                                  if (HasMacStarted()) {
441  
442                                          // Mac has started, execute all 60Hz interrupt functions
442                                        ADBInterrupt();
443                                          TimerInterrupt();
444                                          VideoInterrupt();
445  
# Line 456 | Line 456 | void EmulOp(uint16 opcode, M68kRegisters
456  
457                          if (InterruptFlags & INTFLAG_1HZ) {
458                                  ClearInterruptFlag(INTFLAG_1HZ);
459
459                                  if (HasMacStarted()) {
460                                          SonyInterrupt();
461                                          DiskInterrupt();
# Line 479 | Line 478 | void EmulOp(uint16 opcode, M68kRegisters
478                                  AudioInterrupt();
479                          }
480  
481 +                        if (InterruptFlags & INTFLAG_ADB) {
482 +                                ClearInterruptFlag(INTFLAG_ADB);
483 +                                if (HasMacStarted())
484 +                                        ADBInterrupt();
485 +                        }
486 +
487                          if (InterruptFlags & INTFLAG_NMI) {
488                                  ClearInterruptFlag(INTFLAG_NMI);
489 <                                if (HasMacStarted()) {
489 >                                if (HasMacStarted())
490                                          TriggerNMI();
486                                }
491                          }
492                          break;
493  
# Line 523 | Line 527 | void EmulOp(uint16 opcode, M68kRegisters
527                          break;
528   #endif
529  
530 <                case M68K_EMUL_OP_BLOCK_MOVE:           // BlockMove() replacement
531 <                        memmove(Mac2HostAddr(r->a[1]), Mac2HostAddr(r->a[0]), r->d[0]);
530 >                case M68K_EMUL_OP_BLOCK_MOVE:           // BlockMove() cache flushing
531 >                        FlushCodeCache(Mac2HostAddr(r->a[0]), r->a[1]);
532                          break;
533  
534                  case M68K_EMUL_OP_DEBUGUTIL:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines