OSDN Git Service

test update ok??
authorastoria-d <astoria-d@mail.goo.ne.jp>
Sat, 2 Jul 2016 01:18:21 +0000 (10:18 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Sat, 2 Jul 2016 01:18:21 +0000 (10:18 +0900)
de1_nes/dummy-mos6502.vhd
doc/mos6502-ppu.xlsx

index 78117d4..de2768e 100644 (file)
@@ -210,7 +210,7 @@ end;
                             --set vram addr 2005 (first row, 6th col)\r
                             io_out(16#2006#, 16#20#);\r
                         elsif (nt_step_cnt = 1 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#06#);\r
+                            io_out(16#2006#, 16#3b#);\r
                         elsif (nt_step_cnt = 2 * cpu_io_multi) then\r
                             --set name tbl data\r
                             --0x44, 45, 45 = DEE\r
@@ -229,157 +229,31 @@ end;
                             io_out(16#2007#, 16#44#);\r
 \r
                         elsif (nt_step_cnt = 8 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#2d#);\r
+                            io_out(16#2006#, 16#24#);\r
                         elsif (nt_step_cnt = 9 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#54#);\r
+                            io_out(16#2006#, 16#43#);\r
                         elsif (nt_step_cnt = 10 * cpu_io_multi) then\r
                             io_out(16#2007#, 16#6d#);\r
-                        elsif (nt_step_cnt = 10 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#6f#);\r
-                        elsif (nt_step_cnt = 10 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#74#);\r
                         elsif (nt_step_cnt = 11 * cpu_io_multi) then\r
                             io_out(16#2007#, 16#6f#);\r
                         elsif (nt_step_cnt = 12 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#00#);\r
+                            io_out(16#2007#, 16#74#);\r
+                        elsif (nt_step_cnt = 13 * cpu_io_multi) then\r
+                            io_out(16#2007#, 16#6f#);\r
                             \r
---                        elsif (nt_step_cnt = 5 * cpu_io_multi) then\r
---                            --set vram addr 23c1 (attribute)\r
---                            io_out(16#2006#, 16#23#);\r
---                        elsif (nt_step_cnt = 6 * cpu_io_multi) then\r
---                            io_out(16#2006#, 16#c1#);\r
---                        elsif (nt_step_cnt = 7 * cpu_io_multi) then\r
---                                    --attr=11011000\r
---                            io_out(16#2007#, 16#d8#);\r
---\r
---\r
---                        elsif (nt_step_cnt = 8 * cpu_io_multi) then\r
---                            io_out(16#2006#, 16#20#);\r
---                        elsif (nt_step_cnt = 9 * cpu_io_multi) then\r
---                            io_out(16#2006#, 16#60#);\r
---\r
---                        elsif (nt_step_cnt = 10 * cpu_io_multi) then\r
---                            io_out(16#2007#, 48);\r
---                        elsif (nt_step_cnt = 11 * cpu_io_multi) then\r
---                            io_out(16#2007#, 49);\r
---                        elsif (nt_step_cnt = 12 * cpu_io_multi) then\r
---                            io_out(16#2007#, 50);\r
---                        elsif (nt_step_cnt = 13 * cpu_io_multi) then\r
---                            io_out(16#2007#, 51);\r
---                        elsif (nt_step_cnt = 14 * cpu_io_multi) then\r
---                            io_out(16#2007#, 52);\r
---                        elsif (nt_step_cnt = 15 * cpu_io_multi) then\r
---                            io_out(16#2007#, 53);\r
---                        elsif (nt_step_cnt = 16 * cpu_io_multi) then\r
---                            io_out(16#2007#, 54);\r
---                        elsif (nt_step_cnt = 17 * cpu_io_multi) then\r
---                            io_out(16#2007#, 55);\r
---                        elsif (nt_step_cnt = 18 * cpu_io_multi) then\r
---                            io_out(16#2007#, 56);\r
-\r
-    --                    elsif (nt_step_cnt = 5 * cpu_io_multi) then\r
-    --                        --set vram addr 21d1\r
-    --                        io_out(16#2006#, 16#21#);\r
-    --                    elsif (nt_step_cnt = 6 * cpu_io_multi) then\r
-    --                        io_out(16#2006#, 16#E6#);\r
-    --                    elsif (nt_step_cnt = 7 * cpu_io_multi) then\r
-    --                        --msg=DEE TEST !!!\r
-    --                        io_out(16#2007#, 16#44#);\r
-    --                    elsif (nt_step_cnt = 8 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#45#);\r
-    --                    elsif (nt_step_cnt = 9 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#45#);\r
-    --                    elsif (nt_step_cnt = 10 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#00#);\r
-    --                    elsif (nt_step_cnt = 11 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#54#);\r
-    --                    elsif (nt_step_cnt = 12 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#45#);\r
-    --                    elsif (nt_step_cnt = 13 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#53#);\r
-    --                    elsif (nt_step_cnt = 14 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#54#);\r
-    --                    elsif (nt_step_cnt = 15 * cpu_io_multi) then\r
-    --                        io_out(16#2007#, 16#21#);\r
-\r
-                        --display test pattern\r
-                        elsif (nt_step_cnt = 19 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#20#);\r
-                        elsif (nt_step_cnt = 20 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#20#);\r
-                        \r
-                        elsif (nt_step_cnt = 21 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#01#);\r
-                        elsif (nt_step_cnt = 22 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#02#);\r
-                        elsif (nt_step_cnt = 23 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#03#);\r
-                        elsif (nt_step_cnt = 24 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#04#);\r
-                        elsif (nt_step_cnt = 25 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#05#);\r
-                        elsif (nt_step_cnt = 26 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#06#);\r
-                        elsif (nt_step_cnt = 27 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#07#);\r
-                        elsif (nt_step_cnt = 28 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#08#);\r
-                        elsif (nt_step_cnt = 29 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#09#);\r
-                        elsif (nt_step_cnt = 30 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#0a#);\r
-                        elsif (nt_step_cnt = 31 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#0b#);\r
-                        elsif (nt_step_cnt = 32 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#0c#);\r
-                        elsif (nt_step_cnt = 33 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#0d#);\r
-                        elsif (nt_step_cnt = 34 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#0e#);\r
-                        elsif (nt_step_cnt = 35 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#0f#);\r
-\r
-                        elsif (nt_step_cnt = 36 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#20#);\r
-                        elsif (nt_step_cnt = 37 * cpu_io_multi) then\r
-                            io_out(16#2006#, 16#40#);\r
-                        \r
-                        elsif (nt_step_cnt = 38 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#10#);\r
-                        elsif (nt_step_cnt = 39 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#11#);\r
-                        elsif (nt_step_cnt = 40 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#12#);\r
-                        elsif (nt_step_cnt = 41 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#13#);\r
-                        elsif (nt_step_cnt = 42 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#14#);\r
-                        elsif (nt_step_cnt = 43 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#15#);\r
-                        elsif (nt_step_cnt = 44 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#16#);\r
-                        elsif (nt_step_cnt = 45 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#17#);\r
-                        elsif (nt_step_cnt = 46 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#18#);\r
-                        elsif (nt_step_cnt = 47 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#19#);\r
-                        elsif (nt_step_cnt = 48 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#1a#);\r
-                        elsif (nt_step_cnt = 49 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#1b#);\r
-                        elsif (nt_step_cnt = 50 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#1c#);\r
-                        elsif (nt_step_cnt = 51 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#1d#);\r
-                        elsif (nt_step_cnt = 52 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#1e#);\r
-                        elsif (nt_step_cnt = 53 * cpu_io_multi) then\r
-                            io_out(16#2007#, 16#1f#);\r
+                        elsif (nt_step_cnt = 14 * cpu_io_multi) then\r
+                            io_out(16#2006#, 16#2e#);\r
+                        elsif (nt_step_cnt = 15 * cpu_io_multi) then\r
+                            io_out(16#2006#, 16#93#);\r
+                        elsif (nt_step_cnt = 16 * cpu_io_multi) then\r
+                            io_out(16#2007#, 16#59#);\r
+\r
+                        elsif (nt_step_cnt = 17 * cpu_io_multi) then\r
+                            io_out(16#2007#, 16#00#);\r
 \r
                         else\r
                             io_brk;\r
-                            if (nt_step_cnt > 12 * cpu_io_multi) then\r
+                            if (nt_step_cnt > 17 * cpu_io_multi) then\r
                                 global_step_cnt := global_step_cnt + 1;\r
                             end if;\r
                         end if;\r
@@ -495,11 +369,11 @@ end;
                     elsif (global_step_cnt = 5) then\r
                         --step4 = scroll test.\r
                         if (scl_step_cnt = 0) then\r
-                            --x scroll pos=40\r
-                            io_out(16#2005#, 150);\r
+                            --x scroll pos=123\r
+                            io_out(16#2005#, 123);\r
                         elsif (scl_step_cnt = 1 * cpu_io_multi) then\r
-                            --y scroll pos=3\r
-                            io_out(16#2005#, nmi_scl_y);\r
+                            --y scroll pos=100\r
+                            io_out(16#2005#, 100);\r
 \r
                         else\r
                             io_brk;\r
@@ -540,10 +414,10 @@ end;
                                 io_out(16#2004#, nmi_oam_x);\r
                             elsif (nmi_step_cnt = 2 * cpu_io_multi) then\r
                                 --scroll x=0\r
-                                io_out(16#2005#, nmi_scl_y);\r
+--                                io_out(16#2005#, nmi_scl_y);\r
                             elsif (nmi_step_cnt = 3 * cpu_io_multi) then\r
                                 --scroll y++\r
-                                io_out(16#2005#, nmi_scl_y);\r
+--                                io_out(16#2005#, nmi_scl_y);\r
                             else\r
                                 nmi_oam_x := nmi_oam_x + 1;\r
                                 if (nmi_step_cnt mod 10 = 0) then\r
index eb49205..8e3d34b 100644 (file)
Binary files a/doc/mos6502-ppu.xlsx and b/doc/mos6502-ppu.xlsx differ