I'm writing a multi-module application (c++ and assembly). I want to make a function with non-integer variables (for example float) using a __cdcel:
extern "C" float __cdecl foo(float* arr, float a, float b );
What should I write to use these variables in assembly code
.586
PUBLIC _foo
.model flat
.code
_foo proc
;...
;I want to use my arr, a and b here
;...
ret
_foo endp
end
It's clear for me, that if my variables were integer, I would use ebp, but in my case I have floats, so what should I write? I'm using Intel x86 ASM