Skip to content

Commit

Permalink
chore: dummy support for CGB infrared
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 4, 2024
1 parent c3f9af8 commit 96e1547
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Assorted set of macros to be used in the context of Boytacean.

#[cfg(feature = "debug")]
#[macro_export]
macro_rules! debugln {
Expand Down
6 changes: 6 additions & 0 deletions src/mmu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ impl Mmu {
// 0xFF51-0xFF55 - VRAM DMA (HDMA) (CGB only)
0xff51..=0xff55 => self.dma.read(addr),

// 0xFF56 - RP: Infrared communications port (CGB only)
0xff56 => 0xff,

// 0xFF68-0xFF6B - BG / OBJ Palettes (CGB only)
0xff68..=0xff6b => self.ppu.read(addr),

Expand Down Expand Up @@ -521,6 +524,9 @@ impl Mmu {
// 0xFF51-0xFF55 - VRAM DMA (HDMA) (CGB only)
0xff51..=0xff55 => self.dma.write(addr, value),

// 0xFF56 - RP: Infrared communications port (CGB only)
0xff56 => {}

// 0xFF68-0xFF6B - BG / OBJ Palettes (CGB only)
0xff68..=0xff6b => self.ppu.write(addr, value),

Expand Down

0 comments on commit 96e1547

Please sign in to comment.