This any good?arkannoyed wrote: ↑Fri Jan 18, 2019 2:01 pmSeems to almost do what it needs to. The only thing left that I should've mentioned before is that it needs to RESet the LSB in HL (the data register).
So whereas maybe HL=05c0h, after creating the mask, bit 6 of L needs to be cleared, giving the result HL=0580h.
Does that make sense?
Code: Select all
ld d, h ld e, l dec de ld a, d xor h ld d, a cpl and h ld h, a ld a, e xor l ld e, a cpl and l ld l, a rr d rr e