feat(ppu): implement all i/o writes

This commit is contained in:
2022-10-30 02:36:46 -03:00
parent c9a423d094
commit 472215b4c2
5 changed files with 81 additions and 33 deletions

View File

@@ -297,9 +297,8 @@ pub inline fn setQuart(left: u32, addr: u8, right: u8) u32 {
/// Calculates the correct shift offset for an aligned/unaligned u8 read
///
/// TODO: Rename this
/// TODO: Support u16 reads of u32 values
pub inline fn shift(byte: u8) u4 {
/// TODO: Support u16 reads of u32 values?
pub inline fn getHalf(byte: u8) u4 {
return @truncate(u4, byte & 1) << 3;
}