\r
elsif (global_step_cnt = 4) then\r
--step3 = dma set.\r
- for i in 0 to 64 loop\r
- j := i * 4;\r
- if (ch = 16#5b#) then\r
- ch := 16#41#;\r
- else\r
- ch := 16#41# + i;\r
- end if;\r
-\r
- --if (i < 64) then\r
- if (i < 10) then\r
- --set dma value on the ram.\r
- if (dma_step_cnt = (0 + j) * cpu_io_multi) then\r
- io_out(16#0200# + j, i);\r
- elsif (dma_step_cnt = (1 + j) * cpu_io_multi) then\r
- io_out(16#0201# + j, ch);\r
- elsif (dma_step_cnt = (2 + j) * cpu_io_multi) then\r
- io_out(16#0202# + j, 16#01#);\r
- elsif (dma_step_cnt = (3 + j) * cpu_io_multi) then\r
- io_out(16#0203# + j, j);\r
- elsif (dma_step_cnt = (0 + j) * cpu_io_multi + 1) or\r
- (dma_step_cnt = (1 + j) * cpu_io_multi + 1) or\r
- (dma_step_cnt = (2 + j) * cpu_io_multi + 1) or\r
- (dma_step_cnt = (3 + j) * cpu_io_multi + 1) then\r
- io_brk;\r
- end if;\r
- else\r
- if (dma_step_cnt = (0 + j) * cpu_io_multi) then\r
- --start dma\r
- io_out(16#4014#, 16#02#);\r
- elsif (dma_step_cnt = (0 + j) * cpu_io_multi + 1) then\r
- io_brk;\r
- elsif (dma_step_cnt = (0 + j) * cpu_io_multi + 2) then\r
+-- for i in 0 to 64 loop\r
+-- j := i * 4;\r
+-- if (ch = 16#5b#) then\r
+-- ch := 16#41#;\r
+-- else\r
+-- ch := 16#41# + i;\r
+-- end if;\r
+--\r
+-- --if (i < 64) then\r
+-- if (i < 10) then\r
+-- --set dma value on the ram.\r
+-- if (dma_step_cnt = (0 + j) * cpu_io_multi) then\r
+-- io_out(16#0200# + j, i);\r
+-- elsif (dma_step_cnt = (1 + j) * cpu_io_multi) then\r
+-- io_out(16#0201# + j, ch);\r
+-- elsif (dma_step_cnt = (2 + j) * cpu_io_multi) then\r
+-- io_out(16#0202# + j, 16#01#);\r
+-- elsif (dma_step_cnt = (3 + j) * cpu_io_multi) then\r
+-- io_out(16#0203# + j, j);\r
+-- elsif (dma_step_cnt = (0 + j) * cpu_io_multi + 1) or\r
+-- (dma_step_cnt = (1 + j) * cpu_io_multi + 1) or\r
+-- (dma_step_cnt = (2 + j) * cpu_io_multi + 1) or\r
+-- (dma_step_cnt = (3 + j) * cpu_io_multi + 1) then\r
+-- io_brk;\r
+-- end if;\r
+-- else\r
+-- if (dma_step_cnt = (0 + j) * cpu_io_multi) then\r
+-- --start dma\r
+-- io_out(16#4014#, 16#02#);\r
+-- elsif (dma_step_cnt = (0 + j) * cpu_io_multi + 1) then\r
+-- io_brk;\r
+-- elsif (dma_step_cnt = (0 + j) * cpu_io_multi + 2) then\r
io_brk;\r
global_step_cnt := global_step_cnt + 1;\r
- end if;\r
- end if;\r
- end loop;\r
- \r
- dma_step_cnt := dma_step_cnt + 1;\r
+-- end if;\r
+-- end if;\r
+-- end loop;\r
+-- \r
+-- dma_step_cnt := dma_step_cnt + 1;\r
\r
elsif (global_step_cnt = 5) then\r
--step4 = scroll test and ppu reg read test.\r