I'm trying to accomplish the following with as few T-states as possible:
... var1=table[idx++] var1=var1-const1 var1=abs(var1) var2=table[idx++] var2=var2-const2 var2=abs(var2) result=var1+var2 ...
I've come up with the following Z80 code:
... ld a,(hl) inc hl sub d jp p,noneg1 neg noneg1: ld c,a ld a,(hl) inc hl sub e jp p,noneg2 neg noneg2: add a,c ...
Anyone see any further optimizations possible?
Login or register to post comments