From b2ecfd1b6bedc6415c7df853f48546efca7e3b9f Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 12 Sep 2022 23:36:11 -0300 Subject: [PATCH] fix: account for pipeline in obscure bios behaviour --- src/core/bus/Bios.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {