From 874fb2212c211b450a705fd2673069581a7bd482 Mon Sep 17 00:00:00 2001 From: astoria-d Date: Wed, 18 Sep 2013 17:57:28 +0900 Subject: [PATCH] scroll and attribute bug fix --- simulation/ppu/render.vhd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulation/ppu/render.vhd b/simulation/ppu/render.vhd index e1f130e..f180203 100644 --- a/simulation/ppu/render.vhd +++ b/simulation/ppu/render.vhd @@ -761,7 +761,7 @@ end; end if; ----fetch attr table byte. - if (prf_x (4 downto 0) = "11011") then + if (prf_x (4 downto 0) = "00011") then --attribute table is loaded every 32 cycle. --attr table at 0x23c0 vram_addr(dsize - 1 downto 0) <= "11000000" + @@ -770,12 +770,12 @@ end; ppu_ctrl(PPUBNA downto 0) & "11" + ("000" & prf_x(dsize)); end if; - if (prf_x (4 downto 0) = "11100") then + if (prf_x (4 downto 0) = "00100") then attr_we_n <= '0'; else attr_we_n <= '1'; end if; - if (prf_x (4 downto 0) = "00000") then + if (prf_x (4 downto 0) = "10000") then disp_attr_we_n <= '0'; else disp_attr_we_n <= '1'; -- 2.11.0