GBA: Improve accuracy of event timing
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Jan 2015 20:52:49 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -73,6 +73,7 @@ - Qt: Clear active buttons when focus is lost
- GBA Memory: Simplify memory API and use fixed bus width - GBA Video: Start video at the last scanline instead of the first - Debugger: Watchpoints now work on STM/LDM instructions + - GBA: Improve accuracy of event timing 0.1.0: (2014-12-13) - Initial release
M
src/gba/gba.c
→
src/gba/gba.c
@@ -142,7 +142,7 @@
static void GBAProcessEvents(struct ARMCore* cpu) { do { struct GBA* gba = (struct GBA*) cpu->master; - int32_t cycles = cpu->cycles; + int32_t cycles = cpu->nextEvent; int32_t nextEvent = INT_MAX; int32_t testEvent;