X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/b057a5d6e6db6db06ae33703ca72cd235eec91d6..f8c46ff554cb7f4c067eab1234faf729118c4c25:/core/insn_alu_ext.v?ds=sidebyside diff --git a/core/insn_alu_ext.v b/core/insn_alu_ext.v index 1b7825b..b4046e8 100644 --- a/core/insn_alu_ext.v +++ b/core/insn_alu_ext.v @@ -1,3 +1,5 @@ +`define INSN_ALU_EXT 9'b100xxxxxx + `ifdef EXECUTE `INSN_ALU_EXT: begin if ((opcode[2:0] == `INSN_reg_dHL) && (cycle == 0)) @@ -24,6 +26,7 @@ if(cycle == 0) begin end else if(cycle == 1) begin `EXEC_WRITE(`_HL, alu_res) + `_F <= {f_res,`_F[3:0]}; end else begin `EXEC_NEWCYCLE end