From 25f45e18f7df13c0a79f6a1e115efc1a5cb094a9 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 6 Feb 2023 21:10:13 +1100 Subject: [PATCH] more handling --- src/processor/memory.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/processor/memory.rs b/src/processor/memory.rs index 2adc5a5..1c9d81a 100644 --- a/src/processor/memory.rs +++ b/src/processor/memory.rs @@ -151,6 +151,16 @@ impl Memory { } } 0xFF04 => self.io[addr_l] = 0, + 0xFF00 | 0xFF11 | 0xFF14 | 0xFF16 | 0xFF19 | 0xFF1E | 0xFF23 | 0xFF26 | 0xFF41 + | 0xFF4D | 0xFF56 => { + // mixed read/write addresses... + // need to fill these out more... + // just seeing what breaks... + } + 0xFF44 | 0xFF76 | 0xFF77 => { + // read-only addresses + println!("BANNED write: {:#X} to {:#X}", data, address); + } _ => { self.io[addr_l] = data; // panic!("passed non-io address to io handler!");