From 442e90e24d9aa7d95a38a19c71cf9b37c63f4c75 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 b7bd543..414a587 100644 --- a/src/core/util.zig +++ b/src/core/util.zig @@ -166,7 +166,7 @@ pub const Logger = struct { arm7tdmi.r[12], arm7tdmi.r[13], arm7tdmi.r[14], - arm7tdmi.r[15] - 4, + arm7tdmi.r[15] - if (arm7tdmi.cpsr.t.read()) 2 else @as(u32, 4), arm7tdmi.cpsr.raw, opcode, };