#ifdef DEBUG
default:
printf("Invalid Op42 branch type %hx\n", b >> 4);
- return;\r
- }
+ return;
#endif\r
+ }\r
#endif
}
{OpFAX1}, {OpFB}, {OpFC}, {OpFDM0}, {OpFEM0},
{OpFFM0}
};
+
char stra[64];
sprintf(stra,"framecpt : %d",framecpt);
S9xMessage(0,0,stra);
-#endif
+#endif
#if CONF_BUILD_ASM_CPU
asmMainLoop(&CPU);
#endif
Registers.PC = CPU.PC - CPU.PCBase;
- //S9xPackStatus (); // not needed
+#if !CONF_BUILD_ASM_CPU
+ S9xPackStatus ();
+#endif
S9xAPUPackStatus ();
if (CPU.Flags & SCAN_KEYS_FLAG)
CPU.Flags |= NMI_FLAG;
CPU.NMICycleCount = CPU.NMITriggerPoint;
}
-
- #ifdef OLD_SNAPSHOT_CODE
- if (CPU.Flags & SAVE_SNAPSHOT_FLAG)
- {
- CPU.Flags &= ~SAVE_SNAPSHOT_FLAG;
- Registers.PC = CPU.PC - CPU.PCBase;
- //S9xPackStatus (); // not needed
- S9xAPUPackStatus ();
- Snapshot (NULL);
- }
- #endif
}
if (CPU.V_Counter == PPU.ScreenHeight + 3)
+drnoksnes (1.1.0) unstable; urgency=low
+
+ * Fixed graphic glitches in SuperFX games.
+ * Integrated C cpu core for i386 builds.
+ * SA-1 enabled for i386 using C cpu.
+
+ -- Javier S. Pedro <maemo@javispedro.com> Thu, 10 Sep 2009 01:37:15 +0200
+
drnoksnes (1.0.2) unstable; urgency=low
* Some bugs and warnings fixed.
SA1.ShiftedDB = (uint32) SA1Registers.DB << 16;
S9xSA1SetPCBase (SA1.ShiftedPB + SA1Registers.PC);
+#if !CONF_BUILD_ASM_SA1
S9xSA1UnpackStatus ();
- //S9xSA1FixCycles (); // unused
+ S9xSA1FixCycles ();
+#endif
SA1.VirtualBitmapFormat = (Memory.FillRAM [0x223f] & 0x80) ? 2 : 4;
Memory.BWRAM = Memory.SRAM + (Memory.FillRAM [0x2224] & 7) * 0x2000;
S9xSA1SetBWRAMMemMap (Memory.FillRAM [0x2225]);
#endif
(*SA1.S9xOpcodes [*SA1.PC++].S9xOpcode)();
}
+ return;
}
- else
#endif
- for (i = 0; i < 3 && SA1.Executing; i++)
- {
+ for (i = 0; i < 3 && SA1.Executing; i++)
+ {
#ifdef CPU_SHUTDOWN
- SA1.PCAtOpcodeStart = SA1.PC;
+ SA1.PCAtOpcodeStart = SA1.PC;
#endif
- (*SA1.S9xOpcodes [*SA1.PC++].S9xOpcode)();
- }
+ (*SA1.S9xOpcodes [*SA1.PC++].S9xOpcode)();
+ }
}
#endif
#include "srtc.h"
#include "sdd1.h"
+#define dprintf(...) /* disabled */
+
extern uint8 *SRAM;
#ifdef ZSNES_FX
ICPU.ShiftedPB = Registers.PB << 16;
ICPU.ShiftedDB = Registers.DB << 16;
S9xSetPCBase (ICPU.ShiftedPB + Registers.PC);
-
-
- //S9xUnpackStatus (); // not needed
- //S9xFixCycles (); // also not needed?
+
+#if !CONF_BUILD_ASM_CPU
+ S9xUnpackStatus ();
+ S9xFixCycles ();
+#endif
+
S9xReschedule ();
#ifdef ZSNES_FX
if (Settings.SuperFX)
strncmp (buffer, name, 3) != 0 || buffer [3] != ':' ||
(len = atoi (&buffer [4])) == 0)
{
- printf("%s: %s: Invalid block header\n", __func__, name);
+ dprintf("%s: %s: Invalid block header\n", __func__, name);
return WRONG_FORMAT;
}
if (READ_STREAM(block, len, ss_st) != len)
{
- printf("%s: Invalid block\n", __func__);
+ dprintf("%s: Invalid block\n", __func__);
return WRONG_FORMAT;
}