chore: run zig fmt

This commit is contained in:
2021-12-29 15:13:50 -06:00
parent ff7bf4eaa7
commit 7cc3f40a85
4 changed files with 13 additions and 17 deletions

View File

@@ -27,9 +27,9 @@ pub fn comptimeHalfSignedDataTransfer(comptime P: bool, comptime U: bool, compti
var address = if (P) modified_base else base;
if (L) {
switch(@truncate(u2, opcode >> 5)) {
switch (@truncate(u2, opcode >> 5)) {
0b00 => {
// SWP
// SWP
std.debug.panic("TODO: Implement SWP", .{});
},
0b01 => {
@@ -46,7 +46,7 @@ pub fn comptimeHalfSignedDataTransfer(comptime P: bool, comptime U: bool, compti
// LDRSH
const halfword = bus.readHalfWord(address);
cpu.r[rd] = util.u32_sign_extend(@as(u32, halfword), 16);
}
},
}
} else {
if (opcode >> 5 & 0x01 == 0x01) {
@@ -64,4 +64,4 @@ pub fn comptimeHalfSignedDataTransfer(comptime P: bool, comptime U: bool, compti
if (W and P) cpu.r[rn] = address;
}
}.halfSignedDataTransfer;
}
}