From 1338d58582055e7ff4752e6e953866eba2bc2fdd Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 6 Feb 2023 12:37:35 +1100 Subject: [PATCH] actually turn off bootrom LOL --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 93cd6b0..6701eed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,7 +178,10 @@ impl Memory { } self.io[(address - 0xFF00) as usize] = data; } - 0xFF4C..0xFF80 => { + 0xFF50 => { + self.bootrom_enabled = false; + } + 0xFF4C..0xFF50 | 0xFF51..0xFF80 => { // println!("empty space 2 write: {:#X} to addr {:#X}", data, address); } 0xFF80..0xFFFF => {