OSDN Git Service

minor change
authorastoria-d <astoria-d@mail.goo.ne.jp>
Sat, 7 Sep 2013 07:35:37 +0000 (16:35 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Sat, 7 Sep 2013 07:35:37 +0000 (16:35 +0900)
simulation/cpu/decoder.vhd
simulation/cpu/mos6502.vhd

index abcc690..03658a6 100644 (file)
@@ -1034,6 +1034,7 @@ end  procedure;
             d_print(string'("-"));
 
             if rdy = '0' then
+                --case dma is runnting.
                 disable_pins;
                 inst_we_n <= '1';
                 ad_oe_n <= '0';
index 9a59be0..e12aa4d 100644 (file)
@@ -539,7 +539,7 @@ begin
     return hex_chr(tmp2 + 1) & hex_chr(tmp1 + 1);
 end;
     begin
-        if (set_clk = '0' and exec_cycle = "000000") then
+        if (set_clk = '0' and rdy = '1' and exec_cycle = "000000") then
             --show pc on the T0 (fetch) cycle.
             d_print("pc : " & conv_hex8(conv_integer(abh)) 
                     & conv_hex8(conv_integer(abl)));