From f89a37936f3ed378f4d5bdcbe56613a78001e361 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:02 -0300 Subject: [PATCH] chore(bios): allow reading from BIOS --- src/bus/Bios.zig | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bus/Bios.zig b/src/bus/Bios.zig index 0c98efe..5cda22b 100644 --- a/src/bus/Bios.zig +++ b/src/bus/Bios.zig @@ -23,16 +23,13 @@ pub fn deinit(self: Self) void { } pub fn get32(self: *const Self, 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 fn get16(self: *const Self, 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 fn get8(self: *const Self, idx: usize) u8 { - std.debug.panic("[BIOS] TODO: BIOS is not implemented", .{}); return self.buf[idx]; }