diff --git a/src/core/bus/Bios.zig b/src/core/bus/Bios.zig index 8515cdb..45e3c43 100644 --- a/src/core/bus/Bios.zig +++ b/src/core/bus/Bios.zig @@ -39,12 +39,12 @@ pub fn read(self: *Self, comptime T: type, r15: u32, addr: u32) T { } log.debug("Rejected read since r15=0x{X:0>8}", .{r15}); - return @truncate(T, self.uncheckedRead(T, self.addr_latch + 8)); + return @truncate(T, self.uncheckedRead(T, self.addr_latch)); } pub fn dbgRead(self: *const Self, comptime T: type, r15: u32, addr: u32) T { if (r15 < Self.size) return self.uncheckedRead(T, addr); - return @truncate(T, self.uncheckedRead(T, self.addr_latch + 8)); + return @truncate(T, self.uncheckedRead(T, self.addr_latch)); } fn uncheckedRead(self: *const Self, comptime T: type, addr: u32) T {