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.23 by cebix, 2001-02-02T20:52:57Z vs.
Revision 1.26 by cebix, 2001-07-09T11:21:59Z

# 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 248 | Line 249 | void EmulOp(uint16 opcode, M68kRegisters
249                                  WriteMacInt8(asc_regs + 0x800, 0x0f);   // Set ASC version number
250                                  WriteMacInt32(0xcc0, asc_regs);                 // Set ASCBase
251                          }
251                        
252 #if (REAL_ADDRESSING || DIRECT_ADDRESSING) && defined(USE_SCRATCHMEM_SUBTERFUGE)
253                        extern uint8 *ScratchMem;
254                        
255                        // Set VIA base address to scratch memory area
256                        D(bug("Patch VIA base address [0x%x] to ScratchMem\n", ReadMacInt32(0x1d4)));
257                        WriteMacInt32(0x1d4, Host2MacAddr(ScratchMem));
258                        
259                        // Set SCCRd base address to scratch memory area
260                        D(bug("Patch SCCRd base address [0x%x] to ScratchMem\n", ReadMacInt32(0x1d8)));
261                        WriteMacInt32(0x1d8, Host2MacAddr(ScratchMem));
262                        
263                        // Set SCCWr base address to scratch memory area
264                        D(bug("Patch SCCWr base address [0x%x] to ScratchMem\n", ReadMacInt32(0x1dc)));
265                        WriteMacInt32(0x1dc, Host2MacAddr(ScratchMem));
266 #endif
252                          break;
253                  }
254  
# Line 455 | Line 440 | void EmulOp(uint16 opcode, M68kRegisters
440                                  if (HasMacStarted()) {
441  
442                                          // Mac has started, execute all 60Hz interrupt functions
458                                        ADBInterrupt();
443                                          TimerInterrupt();
444                                          VideoInterrupt();
445  
# Line 472 | Line 456 | void EmulOp(uint16 opcode, M68kRegisters
456  
457                          if (InterruptFlags & INTFLAG_1HZ) {
458                                  ClearInterruptFlag(INTFLAG_1HZ);
475
459                                  if (HasMacStarted()) {
460                                          SonyInterrupt();
461                                          DiskInterrupt();
# Line 495 | 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();
502                                }
491                          }
492                          break;
493  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines