From d001d4350be9ca15c93e5ebfbfb1e46d304b44e4 Mon Sep 17 00:00:00 2001 From: paulb-nl Date: Sat, 21 Jun 2025 15:45:56 +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