mirror of https://github.com/mgba-emu/mgba.git
GB Timer: Fix priorties on events
This commit is contained in:
parent
858267da3f
commit
e60f0660a4
|
@ -61,11 +61,11 @@ void GBTimerReset(struct GBTimer* timer) {
|
||||||
timer->event.context = timer;
|
timer->event.context = timer;
|
||||||
timer->event.name = "GB Timer";
|
timer->event.name = "GB Timer";
|
||||||
timer->event.callback = _GBTimerUpdate;
|
timer->event.callback = _GBTimerUpdate;
|
||||||
timer->event.priority = 0x20;
|
timer->event.priority = 0x21;
|
||||||
timer->irq.context = timer;
|
timer->irq.context = timer;
|
||||||
timer->irq.name = "GB Timer IRQ";
|
timer->irq.name = "GB Timer IRQ";
|
||||||
timer->irq.callback = _GBTimerIRQ;
|
timer->irq.callback = _GBTimerIRQ;
|
||||||
timer->event.priority = 0x21;
|
timer->irq.priority = 0x20;
|
||||||
|
|
||||||
timer->nextDiv = GB_DMG_DIV_PERIOD * 2;
|
timer->nextDiv = GB_DMG_DIV_PERIOD * 2;
|
||||||
timer->timaPeriod = 1024 >> 4;
|
timer->timaPeriod = 1024 >> 4;
|
||||||
|
|
Loading…
Reference in New Issue