From 97e663febf4424c426182dbe66a39e975b14bc26 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:11:54 -0300 Subject: [PATCH] fix(bus): remove accidental recursion --- src/Bus.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bus.zig b/src/Bus.zig index 20ad799..0b0d7c6 100644 --- a/src/Bus.zig +++ b/src/Bus.zig @@ -43,7 +43,7 @@ pub fn read32(self: *const Self, addr: u32) u32 { 0x0000_0000...0x0000_3FFF => self.bios.get32(@as(usize, addr)), 0x0200_0000...0x0203_FFFF => self.iwram.get32(addr - 0x0200_0000), 0x0300_0000...0x0300_7FFF => self.ewram.get32(addr - 0x0300_0000), - 0x0400_0000...0x0400_03FE => self.read32(addr), + 0x0400_0000...0x0400_03FE => self.io.read32(addr), // Internal Display Memory 0x0500_0000...0x0500_03FF => self.ppu.palette.get32(@as(usize, addr - 0x0500_0000)),