all repos — mgba @ 535d179eb09955993596c30300376631a54e6a6f

mGBA Game Boy Advance Emulator

GBA: Improve accuracy of event timing
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Jan 2015 20:52:49 -0800
commit

535d179eb09955993596c30300376631a54e6a6f

parent

900dc3c13f1f062126d5dae14d4f4d4ce5ef97b4

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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;