From 06914983d992ba3d65e88ae286a09dd79a78283c Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 28 Jul 2022 21:03:32 -0300 Subject: [PATCH] feat: resolve off-by-{word, halfword} errors when printing debug info --- src/core/util.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/util.zig b/src/core/util.zig index 4fb13b8..d9544fb 100644 --- a/src/core/util.zig +++ b/src/core/util.zig @@ -222,7 +222,7 @@ pub const Logger = struct { cpu.r[12], cpu.r[13], cpu.r[14], - cpu.r[15] - 4, + cpu.r[15] - if (cpu.cpsr.t.read()) 2 else @as(u32, 4), cpu.cpsr.raw, opcode, };