GBA: Improve accuracy of event timing

This commit is contained in:
Jeffrey Pfau 2015-01-15 20:52:49 -08:00
parent 900dc3c13f
commit 535d179eb0
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ Misc:
- 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

View File

@ -142,7 +142,7 @@ void GBASkipBIOS(struct ARMCore* cpu) {
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;