Fix LD RR,$nnnn instruction not reading operand

This commit is contained in:
Koray Yanik 2021-02-18 09:27:17 +00:00
parent 2937ff492b
commit 3e92cf5eec

View File

@ -47,8 +47,8 @@ module decode (
assign is_alu_a_n = (dec_x == 3'h2);
assign need_instr1_o = is_ld_sp_nnnn;
assign need_instr2_o = is_ld_sp_nnnn;
assign need_instr1_o = is_ld_sp_nnnn | is_ld_rr_nnnn;
assign need_instr2_o = is_ld_sp_nnnn | is_ld_rr_nnnn;
assign undef_o = ~(is_ld_sp_nnnn | is_ld_rr_nnnn | is_alu_a_n);