X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fxemu.cpp;h=65701838b87feb7c37d25b629e46fa728525f3c1;hb=eed86017c48a6e264f5f3ee56bf686f787a85fd5;hp=9ea597a97278e04cf6c5027db72b86f8da1ee525;hpb=3ddd6d5ea2811b783bf349c8947cf1bbaaf3c8b9;p=drnoksnes diff --git a/fxemu.cpp b/fxemu.cpp index 9ea597a..6570183 100644 --- a/fxemu.cpp +++ b/fxemu.cpp @@ -44,8 +44,10 @@ #include #include +#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; @@ -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 */