feat(cpu): stub PSR Transfer instructions

This commit is contained in:
2022-01-12 03:40:51 -04:00
parent 1c173eb4b8
commit 7531af7f2b
2 changed files with 22 additions and 0 deletions

13
src/cpu/psr_transfer.zig Normal file
View File

@@ -0,0 +1,13 @@
const std = @import("std");
const Bus = @import("../Bus.zig");
const Arm7tdmi = @import("../cpu.zig").Arm7tdmi;
const InstrFn = @import("../cpu.zig").InstrFn;
pub fn psrTransfer(comptime _: bool, comptime _: bool) InstrFn {
return struct {
fn inner(_: *Arm7tdmi, _: *Bus, _: u32) void {
std.debug.panic("[CPU] TODO: Implement PSR Transfer Instructions", .{});
}
}.inner;
}