From a93b14bc9ce95faddce3615c26f832d96491c2c7 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Wed, 20 Feb 2019 17:41:04 -0500 Subject: [PATCH] Real-time dropout only makes sense on the Teensy; don't force it on SDL --- Makefile | 2 +- apple/applemmu.cpp | 4 ++++ apple/diskii.cpp | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 218b3c4..2ec96c7 100755 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/apple/applemmu.cpp b/apple/applemmu.cpp index 1ea08de..c5f4f5f 100644 --- a/apple/applemmu.cpp +++ b/apple/applemmu.cpp @@ -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 diff --git a/apple/diskii.cpp b/apple/diskii.cpp index 6874966..c0910d4 100644 --- a/apple/diskii.cpp +++ b/apple/diskii.cpp @@ -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;