Had a short discussion about the use of leau
as a 16-bit counter. I had tried using it, but found that bne
after an leau -1,u
didn't work. Turns out that leau/leas
don't effect the CC flag, so you need a cmp
after to control the loop.
Copyright © 2025, Lee Patterson