Real-time dropout only makes sense on the Teensy; don't force it on SDL

This commit is contained in:
Jorj Bauer 2019-02-20 17:41:04 -05:00
parent 687a096702
commit a93b14bc9c
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ LDFLAGS=-L/usr/local/lib
SDLLIBS=-lSDL2 -lpthread
FBLIBS=-lpthread
CXXFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -O3
CXXFLAGS=-Wall -I/usr/include/SDL2 -I .. -I . -I apple -I nix -I sdl -I/usr/local/include/SDL2 -g -O3 -DSUPPRESSREALTIME
TSRC=cpu.cpp util/testharness.cpp

View File

@ -562,9 +562,11 @@ uint8_t AppleMMU::readSwitches(uint16_t address)
case 0xC030: // SPEAKER
g_speaker->toggle(g_cpu->cycles);
#ifndef SUPPRESSREALTIME
g_cpu->realtime(); // cause the CPU to stop processing its outer
// loop b/c the speaker might need attention
// immediately
#endif
return FLOATING;
case 0xC050: // CLRTEXT
@ -721,9 +723,11 @@ void AppleMMU::writeSwitches(uint16_t address, uint8_t v)
// Writes toggle the speaker twice
g_speaker->toggle(g_cpu->cycles);
g_speaker->toggle(g_cpu->cycles);
#ifndef SUPPRESSREALTIME
g_cpu->realtime(); // cause the CPU to stop processing its outer
// loop b/c the speaker might need attention
// immediately
#endif
return;
case 0xC050: // graphics mode

View File

@ -139,10 +139,6 @@ void DiskII::Reset()
uint8_t DiskII::readSwitches(uint8_t s)
{
#if 0
g_cpu->realtime(); /* cause the CPU to stop processing its outer
* loop b/c the disk might need attention immediately */
#endif
switch (s) {
case 0x00: // change stepper motor phase
break;