mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
change to using iter
This commit is contained in:
parent
1ac33bfbc8
commit
8b8b2b17a2
|
@ -94,9 +94,8 @@ static mut INTERRUPT_TABLE: [InterruptRoot; 14] = [
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn __RUST_INTERRUPT_HANDLER(interrupt: u16) {
|
||||
for i in 0..=13_u16 {
|
||||
for (i, root) in unsafe { INTERRUPT_TABLE.iter().enumerate() } {
|
||||
if (1 << i) & interrupt != 0 {
|
||||
let root = unsafe { &INTERRUPT_TABLE[i as usize] };
|
||||
root.trigger_interrupts();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue