Skip to content

Commit

Permalink
Fix ALU to output correct result for CMP.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhuffman committed Aug 21, 2022
1 parent 6a4d4a3 commit 82f250f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verilog/cpu6502.sv
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ module cpu6502_alu
3'h3: result = add_result; // ADC
3'h4: result = 8'h0; // STA
3'h5: result = b_in; // LDA
3'h6: result = a_in; // CMP
3'h6: result = add_result; // CMP
3'h7: result = add_result; // SBC
endcase // case (op)
end
Expand Down

0 comments on commit 82f250f

Please sign in to comment.