Re: Linking ASM Object File to C++ Program




Protoman wrote:

How do I return a value?

Just don't push/pop EAX. EAX is the return value. So by not
pushing/popping it the register gets the value of the MUL + ADD.

.