#include <string.h>
#include <stdio.h>
+#include "port.h"
+
/* The FxChip Emulator's internal variables */
-struct FxRegs_s GSU = {0};
+struct FxRegs_s GSU = {{0}, 0};
uint32 (**fx_ppfFunctionTable)(uint32) = 0;
void (**fx_ppfPlotTable)() = 0;
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 */