`ifdef WRITEBACK
`INSN_ADD_HL: begin
case (cycle)
- 0: {tmp,tmp2} <= `_HL + {tmp,tmp2};
1: begin
`_F <= { /* Z */ `_F[7],
/* N */ 1'b0,
/* C */ (({1'b0,`_HL} + {1'b0,tmp,tmp2}) & 17'h10000) ? 1'b1 : 1'b0,
`_F[3:0]
};
- `_HL <= {tmp, tmp2};
+ `_HL <= `_HL + {tmp, tmp2};
end
endcase
end