Quote Originally Posted by Krille View Post
Typo? Also, 'dec ax' is one byte shorter than 'dec al' and is safe to use here.
Correct, and correct. What I get for typing it from memory since the live code was on another machine in terms of the typo...

... and I'm ALWAYS forgetting the AX vs. AL thing. Not a worry about it messing up AL here since I'm starting at four and there's only two subtracts. Always seemed screwy that the smaller byte-size operation took an extra byte; kind of defeats the point.

But it's x86, there's a lot of strange compromises and oddball things just plain missing.