From 3b57b658f943e2d2141057f89808b26d8f5d668a Mon Sep 17 00:00:00 2001 From: Borrmann <43264484+2ndTaleStudio@users.noreply.github.com> Date: Fri, 13 Dec 2019 19:59:00 +0100 Subject: [PATCH] minor fix --- src/lib.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 943c324..bcee5ef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -297,34 +297,34 @@ fn interrupt_handler() { if active[2] != 0 { // IRQ Bank Basic - if active[2] & (1 << 64 - 64) != 0 { + if active[2] & (1 << (64 - 64)) != 0 { __irq_handler__ArmTimer() } - if active[2] & (1 << 65 - 64) != 0 { + if active[2] & (1 << (65 - 64)) != 0 { __irq_handler__ArmMailbox() } - if active[2] & (1 << 66 - 64) != 0 { + if active[2] & (1 << (66 - 64)) != 0 { __irq_handler__ArmDoorbell0() } - if active[2] & (1 << 67 - 64) != 0 { + if active[2] & (1 << (67 - 64)) != 0 { __irq_handler__ArmDoorbell1() } - if active[2] & (1 << 68 - 64) != 0 { + if active[2] & (1 << (68 - 64)) != 0 { __irq_handler__ArmGpu0Halted() } - if active[2] & (1 << 69 - 64) != 0 { + if active[2] & (1 << (69 - 64)) != 0 { __irq_handler__ArmGpu1Halted() } - if active[2] & (1 << 70 - 64) != 0 { + if active[2] & (1 << (70 - 64)) != 0 { __irq_handler__ArmIllegalType1() } - if active[2] & (1 << 71 - 64) != 0 { + if active[2] & (1 << (71 - 64)) != 0 { __irq_handler__ArmIllegalType0() } - if active[2] & (1 << 72 - 64) != 0 { + if active[2] & (1 << (72 - 64)) != 0 { __irq_handler__ArmPending1() } - if active[2] & (1 << 73 - 64) != 0 { + if active[2] & (1 << (73 - 64)) != 0 { __irq_handler__ArmPending2() } }