From 82fb5e7a93bef04edc62c547605e372e3ed498f8 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:11:46 -0300 Subject: [PATCH] chore: panic on read from BIOS GBA Bios requires a lot of implemented features, so we're ignoring it for now --- src/bus/bios.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bus/bios.zig b/src/bus/bios.zig index a8d6d14..a078ef8 100644 --- a/src/bus/bios.zig +++ b/src/bus/bios.zig @@ -17,14 +17,17 @@ pub const Bios = struct { } pub inline fn get32(self: *const @This(), idx: usize) u32 { + std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{}); return (@as(u32, self.buf[idx + 3]) << 24) | (@as(u32, self.buf[idx + 2]) << 16) | (@as(u32, self.buf[idx + 1]) << 8) | (@as(u32, self.buf[idx])); } pub inline fn get16(self: *const @This(), idx: usize) u16 { + std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{}); return (@as(u16, self.buf[idx + 1]) << 8) | @as(u16, self.buf[idx]); } pub inline fn get8(self: *const @This(), idx: usize) u8 { + std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{}); return self.buf[idx]; } };