feat: implement dedicated Barrel Shifter SHL and SHR

This commit is contained in:
2022-01-05 13:58:11 -05:00
parent 7473ffedc7
commit 28a70d0112
6 changed files with 126 additions and 38 deletions

View File

@@ -1,10 +1,10 @@
const std = @import("std");
const processor = @import("../cpu.zig");
const arm = @import("../cpu.zig");
const util = @import("../util.zig");
const Bus = @import("../bus.zig").Bus;
const Arm7tdmi = processor.Arm7tdmi;
const InstrFn = processor.InstrFn;
const Arm7tdmi = arm.Arm7tdmi;
const InstrFn = arm.InstrFn;
pub fn comptimeHalfSignedDataTransfer(comptime P: bool, comptime U: bool, comptime I: bool, comptime W: bool, comptime L: bool) InstrFn {
return struct {