From f500da5f1070fb3028eb52686d8aba7224320ce6 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 2 Jul 2022 10:05:58 -0300 Subject: [PATCH] fix: replace accidental removal of code in Cpu.ChangeMode --- src/cpu.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpu.zig b/src/cpu.zig index 54c9d04..0dcab8b 100644 --- a/src/cpu.zig +++ b/src/cpu.zig @@ -247,6 +247,8 @@ pub const Arm7tdmi = struct { self.spsr = self.banked_spsr[bankedSpsrIndex(next)]; }, } + + self.cpsr.mode.write(@enumToInt(next)); } pub fn fastBoot(self: *Self) void {