Timings using lea as a 16-bit loop counter

Date: Dec 22, 2024 / Updated: Dec 22, 2024

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.

Read more...



Copyright © 2025, Lee Patterson