Return for _stdcall is EAX?

And for qword its edx:eax right? Same for MS Windows I would assume.

Comments

  • : And for qword its edx:eax right? Same for MS Windows I would assume.
    :
    [blue]That is correct. 32 bit values returned in EAX, and 64 bit values - in a pair EDX:EAX. I am not sure, but there are also 80-bit values, and these returned by the FPU register most likely.[/blue]
  • : : And for qword its edx:eax right? Same for MS Windows I would assume.
    : :
    : [blue]That is correct. 32 bit values returned in EAX, and 64 bit values - in a pair EDX:EAX. I am not sure, but there are also 80-bit values, and these returned by the FPU register most likely.[/blue]
    :

    Is there a standard method for returning multiple 32 bit values?

  • : : : And for qword its edx:eax right? Same for MS Windows I would assume.
    : : :
    : : [blue]That is correct. 32 bit values returned in EAX, and 64 bit values - in a pair EDX:EAX. I am not sure, but there are also 80-bit values, and these returned by the FPU register most likely.[/blue]
    : :
    :
    : Is there a standard method for returning multiple 32 bit values?
    :
    :
    [blue]Probably not. Use a structure with a few members (ret. values) and pass an address of that structure to your procedure. The procedure fills the structure with multiple return values.[/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories