Skip to content

Commit

Permalink
fixed pre-decrement CPU bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sy2002 committed Feb 13, 2016
1 parent d96aae6 commit 8e368ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vhdl/qnice_cpu.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ begin
-- in case of a branch, Dst_Mode would contain garbage, therefore perform an explicit check
-- optimization: in case of MOVE the destination value is ignored anyway, so we can skip
-- the whole indirect parameter fetch in this case
elsif Opcode /= opcBRA and Dst_Mode /= amDirect and Opcode /= opcMOVE then
elsif Opcode /= opcBRA and Dst_Mode /= amDirect and (Opcode /= opcMOVE or Dst_Mode = amIndirPreDec) then
fsmNextCpuState <= cs_exeprep_get_dst_indirect;

-- pre decrement for destination register
Expand Down

0 comments on commit 8e368ed

Please sign in to comment.