aboutsummaryrefslogtreecommitdiff
path: root/source/apu.c
diff options
context:
space:
mode:
authoraliaspider2014-10-30 06:43:08 +0100
committeraliaspider2014-10-30 06:43:08 +0100
commit21ddea4dfae669fed24448b53dca951a406f0de5 (patch)
tree8a5bb36e2edb30b97cf548924a465ef7818b4bfb /source/apu.c
parent1fbc985d61038c52af8559bbac8ce801d2a1f0b8 (diff)
downloadsnes9x2005-21ddea4dfae669fed24448b53dca951a406f0de5.tar.gz
snes9x2005-21ddea4dfae669fed24448b53dca951a406f0de5.tar.bz2
snes9x2005-21ddea4dfae669fed24448b53dca951a406f0de5.zip
remove snapshot.c snaporig.c dependencies.
Diffstat (limited to 'source/apu.c')
-rw-r--r--source/apu.c21
1 files changed, 0 insertions, 21 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: