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 {