aboutsummaryrefslogtreecommitdiff
path: root/source/spc700.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/spc700.h')
-rw-r--r--source/spc700.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/source/spc700.h b/source/spc700.h
index f1d7046..cbe6637 100644
--- a/source/spc700.h
+++ b/source/spc700.h
@@ -49,17 +49,14 @@
typedef union
{
-#ifdef MSB_FIRST
struct
{
+#ifdef MSB_FIRST
uint8_t Y, A;
- } B;
#else
- struct
- {
uint8_t A, Y;
- } B;
#endif
+ } B;
uint16_t W;
} YAndA;
@@ -76,11 +73,6 @@ typedef struct
// Needed by ILLUSION OF GAIA
#define ONE_APU_CYCLE 21
-// Needed by all games written by the software company called Human
-#define ONE_APU_CYCLE_HUMAN 21
-
-// 1.953us := 1.024065.54MHz
-
#ifdef SPCTOOL
int32_t ESPC(int32_t);
@@ -105,8 +97,8 @@ int32_t ESPC(int32_t);
#define APU_EXECUTE() \
if (IAPU.APUExecuting) \
{\
- while (APU.Cycles <= CPU.Cycles) \
- APU_EXECUTE1(); \
+ while (APU.Cycles <= CPU.Cycles) \
+ APU_EXECUTE1(); \
}
#endif