From 597b9370fc0c03c05d815e094cf8f080363c3c88 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Wed, 23 Jun 2021 23:08:38 +0100 Subject: [PATCH] don't disable and reenable interrupts --- agb/interrupt_simple.s | 7 ------- 1 file changed, 7 deletions(-) diff --git a/agb/interrupt_simple.s b/agb/interrupt_simple.s index c86495a5..4837aed1 100644 --- a/agb/interrupt_simple.s +++ b/agb/interrupt_simple.s @@ -5,9 +5,6 @@ InterruptHandlerSimple: ldr r4, =0x04000200 @ interrupt enable register location - @ disable interrupts by setting bit 0 to 0 - strh r2, [r4, #8] - ldrh r1, [r4] @ load 16 bit interrupt enable to r1 ldrh r3, [r4, #2] @ load 16 bit interrupt request to r3 and r0, r1, r3 @ interrupts both enabled and requested @@ -37,9 +34,5 @@ InterruptHandlerSimple: orr r2, r2, #0x92 msr cpsr_c, r2 - @ reenable interrupts by setting bit 0 to 1 - mov r0, #1 - strh r0, [r4, #8] - bx lr @ return to bios .pool