diff --git a/src/turbine/gba/irq.arm.cpp b/src/turbine/gba/irq.arm.cpp index 0f2aa56f..6b5707c2 100644 --- a/src/turbine/gba/irq.arm.cpp +++ b/src/turbine/gba/irq.arm.cpp @@ -21,7 +21,7 @@ using namespace turbine; extern "C" { -void turbine_isr_vblank() { +void turbine_isr_vblank() noexcept { teagba::applySpriteUpdates(); if constexpr(config::GbaEventLoopTimerBased) { // disable vblank interrupt until it is needed again @@ -29,7 +29,7 @@ void turbine_isr_vblank() { } } -void turbine_isr_timer0() { +void turbine_isr_timer0() noexcept { g_timerMs = g_timerMs + 1; } diff --git a/src/turbine/gba/turbine.arm.cpp b/src/turbine/gba/turbine.arm.cpp index e3cf2520..73530256 100644 --- a/src/turbine/gba/turbine.arm.cpp +++ b/src/turbine/gba/turbine.arm.cpp @@ -12,7 +12,7 @@ namespace turbine { extern volatile gba_timer_t g_timerMs; -gba_timer_t g_wakeupTime; +static gba_timer_t g_wakeupTime{}; ox::Error run(Context &ctx) noexcept { g_wakeupTime = 0;