3 ms·
Not much experienced with x86 asm, but you don't seem to be incrementing esi anywhere... What am I missing?
by Agent101 16y ago
Not much experienced with x86 asm, but you don't seem to be incrementing esi anywhere...
What am I missing?
- jacquesm 16y agostosb = store sequential byte increments the destination pointer, just like lodsb increments the source pointer.
- Agent101 16y agoAh, thanks. Also, eww. It decrements or increments dependent upon a flag. Not nice.
- jacquesm 16y agox86 assembly is full of old cruft, that 'cld' there is a thing that if you've ever forgotten it probably cost you a lot of time. 99% of the time the flag is clear... unless it isn't. So for a seasoned assembly programmer that cld is idiomatic, axod probably typed the instruction reflexively because he knows he can't rely on the state of the direction flag, even if it has nothing to do with the problem per-se.