Skip to content

Commit

Permalink
Stub SETINI register
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Dec 11, 2023
1 parent 2cfd2b3 commit a31a42c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/snes/ppu/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,14 @@ where
Some(())
}

// SETINI - Display Control 2 (W)
0x2133 => {
if self.setini != val {
println!("setini = {:02X}", val);
}
Some(self.setini = val)
}

_ => None,
},

Expand Down
2 changes: 2 additions & 0 deletions src/snes/ppu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ pub struct PPU<TRenderer: Renderer> {
oam_priority: bool,

inidisp: u8,
setini: u8,

// Window settings
w1_left: u8,
Expand Down Expand Up @@ -259,6 +260,7 @@ where
oam_priority: false,

inidisp: 0,
setini: 0,

w1_left: 0,
w1_right: 0,
Expand Down

0 comments on commit a31a42c

Please sign in to comment.