Skip to content
Snippets Groups Projects
Verified Commit 8f70b61f authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: new APU read register

parent 25d287ba
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2710 failed
...@@ -330,6 +330,9 @@ impl Apu { ...@@ -330,6 +330,9 @@ impl Apu {
pub fn read(&mut self, addr: u16) -> u8 { pub fn read(&mut self, addr: u16) -> u8 {
match addr { match addr {
// 0xFF1A — NR30: Channel 3 DAC enable
0xff1a => if self.ch3_dac { 0x80 } else { 0x00 },
// 0xFF25 — NR51: Sound panning // 0xFF25 — NR51: Sound panning
0xff25 => self.glob_panning, 0xff25 => self.glob_panning,
// 0xFF26 — NR52: Sound on/off // 0xFF26 — NR52: Sound on/off
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment