From 39f56e6d8acab99d52615d28557586cd892f43e2 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:13:06 -0300 Subject: [PATCH] feat: resolve off-by-{word, halfword} errors when printing debug info --- src/util.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.zig b/src/util.zig index 36f3882..7b40392 100644 --- a/src/util.zig +++ b/src/util.zig @@ -215,7 +215,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, };