fix: replace accidental removal of code in Cpu.ChangeMode

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-07-02 10:05:58 -03:00
parent bfeedb5310
commit 7a1633e99a
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ pub const Arm7tdmi = struct {
self.spsr = self.banked_spsr[bankedSpsrIndex(next)]; self.spsr = self.banked_spsr[bankedSpsrIndex(next)];
}, },
} }
self.cpsr.mode.write(@enumToInt(next));
} }
pub fn fastBoot(self: *Self) void { pub fn fastBoot(self: *Self) void {