aboutsummaryrefslogtreecommitdiff
path: root/source/apu.h
diff options
context:
space:
mode:
authoraliaspider2014-11-03 11:11:05 +0100
committeraliaspider2014-11-03 11:11:05 +0100
commit7077e9821593b2c9b78830c4cc5055c6a79cdd69 (patch)
tree615195d3db586f5542eddd0cbd17e46e816f954b /source/apu.h
parent3564bfe8134ce6e1294a59212484e9ee487ab4f5 (diff)
downloadsnes9x2005-7077e9821593b2c9b78830c4cc5055c6a79cdd69.tar.gz
snes9x2005-7077e9821593b2c9b78830c4cc5055c6a79cdd69.tar.bz2
snes9x2005-7077e9821593b2c9b78830c4cc5055c6a79cdd69.zip
can build with USE_BLARGG_APU enabled, still not working.
Diffstat (limited to 'source/apu.h')
-rw-r--r--source/apu.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/source/apu.h b/source/apu.h
index 046749d..59c8aeb 100644
--- a/source/apu.h
+++ b/source/apu.h
@@ -210,5 +210,50 @@ extern void (*S9xApuOpcodes [256])(void);
#define FREQUENCY_MASK 0x3fff
#endif
+#else
+#include "apu_blargg.h"
+#define ONE_APU_CYCLE 21
+#define APU_EXECUTE1() do{}while(0)
+#define APU_EXECUTE() do{}while(0)
+
+//typedef struct
+//{
+// uint8* PC;
+// SAPURegisters Registers;
+// uint8* RAM;
+// uint8* DirectPage;
+// bool8 APUExecuting;
+// uint8 Bit;
+// uint32 Address;
+// uint8* WaitAddress1;
+// uint8* WaitAddress2;
+// uint32 WaitCounter;
+// uint8 _Carry;
+// uint8 _Zero;
+// uint8 _Overflow;
+// uint32 TimerErrorCounter;
+// uint32 Scanline;
+// int32 OneCycle;
+// int32 TwoCycles;
+//} SIAPU;
+
+//typedef struct
+//{
+// int32 Cycles;
+// bool8 ShowROM;
+// uint8 Flags;
+// uint8 KeyedChannels;
+// uint8 OutPorts [4];
+// uint8 DSP [0x80];
+// uint8 ExtraRAM [64];
+// uint16 Timer [3];
+// uint16 TimerTarget [3];
+// bool8 TimerEnabled [3];
+// bool8 TimerValueWritten [3];
+//} SAPU;
+
+//SAPU APU;
+//SIAPU IAPU;
+
#endif