Frozen
Frozen

Reputation: 15

Getting return value of a function called with assembly

I am using Microsoft Visual C++ 2010.

If I have a function like this:

const char* blah(void);

and I want to call it like this:

__asm {
    call blah;
    ...
}

How do I get the return value of the function in the assembly?

Upvotes: 0

Views: 3472

Answers (2)

Tergiver
Tergiver

Reputation: 14517

The return value is in the EAX register.

Upvotes: 4

Related Questions