Revert "some cleanups"

This commit is contained in:
Autechre
2021-06-05 15:05:07 +02:00
committed by GitHub
parent cbc17a077b
commit aa4615c417
16 changed files with 174 additions and 127 deletions

View File

@@ -34,7 +34,6 @@ void (*X6502_Run)(int32 cycles);
uint32 timestamp;
uint32 sound_timestamp;
uint32 overclocking = 0;
void FP_FASTAPASS(1) (*MapIRQHook)(int a);
#define _PC X.PC
@@ -55,7 +54,7 @@ void FP_FASTAPASS(1) (*MapIRQHook)(int a);
_tcount += __x; \
_count -= __x * 48; \
timestamp += __x; \
if (!overclocking) sound_timestamp += __x; \
if (!overclocked) sound_timestamp += __x; \
}
static INLINE uint8 RdMemNorm(uint32 A) {
@@ -517,7 +516,7 @@ static void X6502_RunDebug(int32 cycles) {
_tcount = 0;
if (MapIRQHook) MapIRQHook(temp);
if (!overclocking)
if (!overclocked)
FCEU_SoundCPUHook(temp);
_PC++;
@@ -614,7 +613,7 @@ void X6502_Run(int32 cycles)
temp = _tcount;
_tcount = 0;
if (MapIRQHook) MapIRQHook(temp);
if (!overclocking)
if (!overclocked)
FCEU_SoundCPUHook(temp);
X.PC = pbackus;
_PC++;