asm trouble

Walter Bright newshound1 at digitalmars.com
Fri May 15 20:04:21 PDT 2009


Vladimir A. Reznichenko wrote:
> So the question is why the call instruction drops register values?

The call instruction doesn't drop anything, it just does a call. What is 
happening is the rotateLeft function is using ECX for something else. 
The EAX, ECX, and EDX registers are (by convention) not preserved across 
function calls.



More information about the Digitalmars-d mailing list