Skip to content

Commit

Permalink
fix: upper half of mosaic
Browse files Browse the repository at this point in the history
  • Loading branch information
xkevio committed Feb 9, 2024
1 parent f2f4fdd commit 64c20f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmu/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl Mcu for Bus {
0x02 => self.wram[address as usize % 0x0004_0000] = value,
0x03 => self.wram[(address as usize % 0x8000) + 0x0004_0000] = value,
0x04 => match address - 0x0400_0000 {
addr @ (0x0000..=0x004B | 0x0050..=0x0054) => self.ppu.write8(addr, value),
addr @ (0x0000..=0x004D | 0x0050..=0x0054) => self.ppu.write8(addr, value),
addr @ 0x00B0..=0x00DF => self.dma_channels.write8(addr, value),
addr @ 0x0100..=0x010F => self.timers.write8(addr, value),
0x0200 => set_bits!(self.ie.0, 0..=7, value),
Expand Down

0 comments on commit 64c20f7

Please sign in to comment.