- fixed compilation problem under Linux

- TriggerNMI() declaration moved to cpu_emulation.h
This commit is contained in:
cebix 2000-08-22 12:44:30 +00:00
parent 46612d3008
commit 2bebaceabc
5 changed files with 8 additions and 2 deletions

View File

@ -63,6 +63,5 @@ enum {
extern uint32 InterruptFlags; // Currently pending interrupts
extern void SetInterruptFlag(uint32 flag); // Set/clear interrupt flags
extern void ClearInterruptFlag(uint32 flag);
extern void TriggerNMI(void);
#endif

View File

@ -61,5 +61,6 @@ extern "C" void Execute68kTrap(uint16 trap, M68kRegisters *r); // Execute MacOS
// Interrupt functions
extern void TriggerInterrupt(void); // Trigger interrupt (InterruptFlag must be set first)
extern void TriggerNMI(void); // Trigger interrupt level 7
#endif

View File

@ -118,6 +118,11 @@ void TriggerInterrupt(void)
regs.spcflags |= SPCFLAG_INT;
}
void TriggerNMI(void)
{
//!! not implemented yet
}
/*
* Get 68k interrupt level

View File

@ -97,5 +97,6 @@ extern "C" void Execute68kTrap(uint16 trap, M68kRegisters *r); // Execute MacOS
// Interrupt functions
extern void TriggerInterrupt(void); // Trigger interrupt level 1 (InterruptFlag must be set first)
extern void TriggerNMI(void); // Trigger interrupt level 7
#endif

View File

@ -244,7 +244,7 @@ int16 VideoDriverStatus(uint32 pb, uint32 dce)
case cscGetModeTiming: // Get video timing for mode
D(bug(" GetModeTiming mode %08lx\n", ReadMacInt32(param + csTimingMode)));
WriteMacInt32(param + csTimingFormat, 'decl');
WriteMacInt32(param + csTimingFormat, FOURCC('d', 'e', 'c', 'l'));
WriteMacInt32(param + csTimingData, 220); // 21" Multiscan
WriteMacInt32(param + csTimingFlags, 0x0f); // Mode valid, safe, default and shown in Monitors panel
return noErr;