From 96e154712dc6e4a192b109e44ddeed2a5a594ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Sun, 4 Aug 2024 20:34:31 +0100 Subject: [PATCH] chore: dummy support for CGB infrared --- src/macros.rs | 2 ++ src/mmu.rs | 6 ++++++ 2 files changed, 8 insertions(+) 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),