added SuperFX emu back
authorJavier S. Pedro <maemo@javispedro.com>
Sun, 6 Sep 2009 01:02:22 +0000 (03:02 +0200)
committerJavier S. Pedro <maemo@javispedro.com>
Sun, 6 Sep 2009 01:02:22 +0000 (03:02 +0200)
fxemu.cpp
port.h

index a91db25..6570183 100644 (file)
--- a/fxemu.cpp
+++ b/fxemu.cpp
@@ -44,6 +44,8 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "port.h"
+
 /* The FxChip Emulator's internal variables */
 struct FxRegs_s GSU = {{0}, 0};
 
@@ -189,6 +191,10 @@ static void fx_readRegisterSpace()
     static uint32 avHeight[] = { 128, 160, 192, 256 };
     static uint32 avMult[] = { 16, 32, 32, 64 };
 
+#ifndef SUPER_FX
+       abort(); // Tried to run SuperFX game in non SuperFX build.
+#endif
+
     GSU.vErrorCode = 0;
 
     /* Update R0-R15 */
diff --git a/port.h b/port.h
index b861817..c5b1e2c 100644 (file)
--- a/port.h
+++ b/port.h
@@ -105,7 +105,7 @@ typedef int16_t                     int16_32;
 
 // Configuration defines I think I know what they're for
 #define ASM_SPC700             1
-//#define SUPER_FX             1
+#define SUPER_FX               1
 #define CPU_SHUTDOWN   1
 //#define NETPLAY_SUPPORT      1