OSDN Git Service
(root)
/
motonesfpga
/
motonesfpga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dca5b4e
)
- cpy ok
author
astoria-d
<astoria-d@mail.goo.ne.jp>
Wed, 19 Jun 2013 10:33:00 +0000
(19:33 +0900)
committer
astoria-d
<astoria-d@mail.goo.ne.jp>
Wed, 19 Jun 2013 10:33:00 +0000
(19:33 +0900)
- bne bug fix.
simulation/cpu/decoder.vhd
patch
|
blob
|
history
diff --git
a/simulation/cpu/decoder.vhd
b/simulation/cpu/decoder.vhd
index
713451a
..
d0be12a
100644
(file)
--- a/
simulation/cpu/decoder.vhd
+++ b/
simulation/cpu/decoder.vhd
@@
-810,6
+810,10
@@
end procedure;
elsif instruction = conv_std_logic_vector(16#c0#, dsize) then
--imm
d_print("cpy");
+ fetch_imm;
+ arith_en_n <= '0';
+ back_oe(y_cmd, '0');
+ set_nzc_from_alu;
elsif instruction = conv_std_logic_vector(16#c4#, dsize) then
--zp
@@
-1415,7
+1419,7
@@
end procedure;
d_print("bmi");
elsif instruction = conv_std_logic_vector(16#d0#, dsize) then
d_print("bne");
- a58_branch (st_Z, '
1
');
+ a58_branch (st_Z, '
0
');
elsif instruction = conv_std_logic_vector(16#10#, dsize) then
d_print("bpl");