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

chore: dummy support for CGB infrared

parent c3f9af80
No related branches found
No related tags found
No related merge requests found
Pipeline #4817 passed
//! Assorted set of macros to be used in the context of Boytacean.
#[cfg(feature = "debug")]
#[macro_export]
macro_rules! debugln {
......
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment