diff --git a/src/macros.rs b/src/macros.rs index a9344317..95c649d3 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,3 +1,5 @@ +//! Assorted set of macros to be used in the context of Boytacean. + #[cfg(feature = "debug")] #[macro_export] macro_rules! debugln { diff --git a/src/mmu.rs b/src/mmu.rs index d3cbd313..7b4663d7 100644 --- a/src/mmu.rs +++ b/src/mmu.rs @@ -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), @@ -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),