Howdy, Stranger!

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

Categories

Return for _stdcall is EAX?

shaolin007shaolin007 Member Posts: 1,018
And for qword its edx:eax right? Same for MS Windows I would assume.

Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : 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]
  • Ptr_082004Ptr_082004 Member Posts: 31
    : : 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?

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : : : 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.