From 21ddea4dfae669fed24448b53dca951a406f0de5 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Thu, 30 Oct 2014 06:43:08 +0100 Subject: remove snapshot.c snaporig.c dependencies. --- source/apu.c | 21 --------------------- source/apu.h | 5 ++--- source/cpuexec.c | 1 - 3 files changed, 2 insertions(+), 25 deletions(-) (limited to 'source') diff --git a/source/apu.c b/source/apu.c index c816174..56749ce 100644 --- a/source/apu.c +++ b/source/apu.c @@ -98,13 +98,6 @@ #include "soundux.h" #include "cpuexec.h" -/* For note-triggered SPC dump support */ -#include "snapshot.h" - -int spc_is_dumping = 0; -int spc_is_dumping_temp; -uint8 spc_dump_dsp[0x100]; - extern int NoiseFreq [32]; bool8 S9xInitAPU() @@ -140,7 +133,6 @@ void S9xResetAPU() Settings.APUEnabled = Settings.NextAPUEnabled; - ZeroMemory(spc_dump_dsp, 0x100); ZeroMemory(IAPU.RAM, 0x100); memset(IAPU.RAM + 0x20, 0xFF, 0x20); memset(IAPU.RAM + 0x60, 0xFF, 0x20); @@ -207,8 +199,6 @@ void S9xSetAPUDSP(uint8 byte) static uint8 KeyOnPrev; int i; - spc_dump_dsp[reg] = byte; - switch (reg) { case APU_FLG: @@ -320,16 +310,6 @@ void S9xSetAPUDSP(uint8 byte) APU.DSP [APU_KOFF] = byte; return; case APU_KON: - if (spc_is_dumping) - { - if (byte & ~spc_is_dumping_temp) - { - IAPU.Registers.PC = IAPU.PC - IAPU.RAM; - S9xAPUPackStatus(); - S9xSPCDump(".spc"); - spc_is_dumping = 0; - } - } if (byte) { int c; @@ -353,7 +333,6 @@ void S9xSetAPUDSP(uint8 byte) } } } - spc_is_dumping_temp = byte; return; case APU_VOL_LEFT + 0x00: diff --git a/source/apu.h b/source/apu.h index 0311c7f..b49d8fe 100644 --- a/source/apu.h +++ b/source/apu.h @@ -90,6 +90,7 @@ #ifndef _apu_h_ #define _apu_h_ +#include "port.h" #include "spc700.h" typedef struct @@ -130,9 +131,7 @@ typedef struct SAPU APU; SIAPU IAPU; -extern int spc_is_dumping; -extern int spc_is_dumping_temp; -extern uint8 spc_dump_dsp[0x100]; + STATIC inline void S9xAPUUnpackStatus() { IAPU._Zero = ((IAPU.Registers.P & Zero) == 0) | (IAPU.Registers.P & Negative); diff --git a/source/cpuexec.c b/source/cpuexec.c index e015863..ccd38ff 100644 --- a/source/cpuexec.c +++ b/source/cpuexec.c @@ -95,7 +95,6 @@ #include "cpuops.h" #include "ppu.h" #include "cpuexec.h" -#include "snapshot.h" #include "gfx.h" #include "missing.h" #include "apu.h" -- cgit v1.2.3