Is it possible to compare a %-variable with the current value of a register? I currently don't see a way to do that.

That would allow me to optimize
        xor     a, a
        ld      (bc), a
        ld      a, #0x01
to
        xor     a, a
        ld      (bc), a
        inc     a
etc. with just one rule.

--
Freundliche Grüße / Yours sincerely
Sebastian Riedel


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to