feat(cpu): implement MSR and MRS

This commit is contained in:
2022-01-12 04:48:57 -04:00
parent 7531af7f2b
commit 74abd3df4d
4 changed files with 47 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
const std = @import("std");
const Arm7tdmi = @import("../cpu.zig").Arm7tdmi;
const CPSR = @import("../cpu.zig").CPSR;
const CPSR = @import("../cpu.zig").PSR;
pub fn exec(comptime S: bool, cpu: *Arm7tdmi, opcode: u32) u32 {
var shift_amt: u8 = undefined;