Return value of a C function to ASM

后端 未结 3 2076
盖世英雄少女心
盖世英雄少女心 2021-02-14 02:51

I\'m trying to call a function from within ASM. I know how to call it, but i\'m having trouble finding how to get the return value of this function. An example follows:

3条回答
  •  不要未来只要你来
    2021-02-14 03:17

    It depends on the platform and the calling convention, but usually, the return value should already be returned in eax if it's a primitive type or pointer and in the floating point register st(0) if it's a floating point type, I think.

提交回复
热议问题