Using ref and out parameters from inline assembly code

Harry Vennik htvennik at zonnet.nl
Tue Feb 12 13:15:02 PST 2008


Hi,

What is the right way to assign a value to a ref or out parameter from inline assembly code?

Can it just be referenced by its name like any other variable? Or would

mov EAX, some_out_param

move the address of the var into EAX? (i.e. out_param being handled as a pointer, and swapping those operands would overwrite the pointer with the value from EAX?)

Harry





More information about the Digitalmars-d-learn mailing list