GBC bootrom is also disabled with bit 0 only

This commit is contained in:
paulb-nl
2025-05-11 13:04:59 +02:00
parent 460addc5bc
commit 179ec75a80

View File

@@ -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