diff options
author | aliaspider | 2014-10-30 06:43:08 +0100 |
---|---|---|
committer | aliaspider | 2014-10-30 06:43:08 +0100 |
commit | 21ddea4dfae669fed24448b53dca951a406f0de5 (patch) | |
tree | 8a5bb36e2edb30b97cf548924a465ef7818b4bfb /source | |
parent | 1fbc985d61038c52af8559bbac8ce801d2a1f0b8 (diff) | |
download | snesemu-21ddea4dfae669fed24448b53dca951a406f0de5.tar.gz snesemu-21ddea4dfae669fed24448b53dca951a406f0de5.tar.bz2 snesemu-21ddea4dfae669fed24448b53dca951a406f0de5.zip |
remove snapshot.c snaporig.c dependencies.
Diffstat (limited to 'source')
-rw-r--r-- | source/apu.c | 21 | ||||
-rw-r--r-- | source/apu.h | 5 | ||||
-rw-r--r-- | source/cpuexec.c | 1 |
3 files changed, 2 insertions, 25 deletions
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" |