From 179ec75a806cd29f2a33f481e5f0946934abbda9 Mon Sep 17 00:00:00 2001 From: paulb-nl Date: Sun, 11 May 2025 13:04:59 +0200 Subject: [PATCH] GBC bootrom is also disabled with bit 0 only --- rtl/gb.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtl/gb.v b/rtl/gb.v index 44e6715..f7fbb49 100644 --- a/rtl/gb.v +++ b/rtl/gb.v @@ -904,10 +904,10 @@ assign SS_Top_BACK[23] = boot_rom_enabled; always @(posedge clk_sys) begin if(reset_ss) boot_rom_enabled <= SS_Top[23]; // 1'b1; - else if (ce) begin - if((cpu_addr == 16'hff50) && !cpu_wr_n_edge) - if ((isGBC && cpu_do[7:0]==8'h11) || (!isGBC && cpu_do[0])) - boot_rom_enabled <= 1'b0; + else if (ce) begin + if((cpu_addr == 16'hff50) && !cpu_wr_n_edge && cpu_do[0]) begin + boot_rom_enabled <= 1'b0; + end end end