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:
ce44233
)
and abs, x supported.
author
astoria-d
<astoria-d@mail.goo.ne.jp>
Fri, 26 Jul 2013 13:35:20 +0000
(22:35 +0900)
committer
astoria-d
<astoria-d@mail.goo.ne.jp>
Fri, 26 Jul 2013 13:35:20 +0000
(22:35 +0900)
simulation/cpu/decoder.vhd
patch
|
blob
|
history
diff --git
a/simulation/cpu/decoder.vhd
b/simulation/cpu/decoder.vhd
index
63ec7f2
..
dd1a7c8
100644
(file)
--- a/
simulation/cpu/decoder.vhd
+++ b/
simulation/cpu/decoder.vhd
@@
-1099,6
+1099,20
@@
end procedure;
elsif instruction = conv_std_logic_vector(16#3d#, dsize) then
--abs, x
d_print("and");
+ a2_abs_xy(true);
+ if exec_cycle = T3 then
+ arith_en_n <= '0';
+ back_oe(acc_cmd, '0');
+ back_we(acc_cmd, '0');
+ set_nz_from_alu;
+ elsif exec_cycle = T4 then
+ if ea_carry = '1' then
+ arith_en_n <= '0';
+ back_oe(acc_cmd, '0');
+ back_we(acc_cmd, '0');
+ set_nz_from_alu;
+ end if;
+ end if;
elsif instruction = conv_std_logic_vector(16#39#, dsize) then
--abs, y