How to Create .H files and use Assembler functions?
Hello I have DevC++. I created a function on Assembly and it generated and obj file
I added this obj file with the project settings but I dont know how to construct the .H file and how to call it from the main.C
This is my assembly code.-
Thanks for your help
Code:
.386
.model flat, stdcall
option casemap:none
.data
.code
Myproc proc var1:REAL4, var2:REAL4
LOCAL retval:REAL4
finit
fld var1
fld var2
fadd
fstp retval
fwait ;<- is this really needed?
mov eax, retval
ret
Myproc endp
end;