diff --git a/src/cpu.zig b/src/cpu.zig index 07f2a99..bb1a2d5 100644 --- a/src/cpu.zig +++ b/src/cpu.zig @@ -213,7 +213,7 @@ fn comptimeBranch(comptime L: bool) InstrFn { cpu.r[14] = cpu.r[15] - 4; } - cpu.r[15] = cpu.fakePC() + util.u32SignExtend(24, opcode << 2); + cpu.r[15] = cpu.fakePC() +% util.u32SignExtend(24, opcode << 2); } }.branch; }