X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/e29171aa4e057f7c1a2682a0dfd1836beeb71651..1eefdc8e89a69963b1c1a084fe4ecec844997293:/GBZ80Core.v diff --git a/GBZ80Core.v b/GBZ80Core.v index 8970e5d..3c2f770 100644 --- a/GBZ80Core.v +++ b/GBZ80Core.v @@ -295,8 +295,11 @@ module GBZ80Core( busaddress <= address; buswr <= wr; busrd <= rd; - if (wr) + if (wr) begin buswdata <= wdata; + if (address == 16'hFF50) + bootstrap_enb <= 0; + end end end `STATE_DECODE: begin /* Make sure this only happens for one clock. */ @@ -333,8 +336,6 @@ module GBZ80Core( end wr <= 0; rd <= 0; - buswr <= 0; - busrd <= 0; address <= 16'bxxxxxxxxxxxxxxxx; // Make it obvious if something of type has happened. wdata <= 8'bxxxxxxxx; state <= `STATE_EXECUTE;