santiontanon/mdlz80optimizer

Untracked hl usages

Closed this issue · 2 comments

Usage of hl value in the rld and rrd instructions is not properly tracked, causing invalid "Remove unused ld hl,nnnn (3 bytes, 11 t-states saved)" optimizations to be suggested.

oh, indeed! ok! that's an easy fix, I just missed adding HL to the input dependencies of those instructions in the z80*-instruction-set.tsv files! Will fix later after work. Thanks for reporting!!!

alright, resolved! I also added test42.asm to make sure this works! :)