Creating an obj in fasm
Posted: Sat May 20, 2006 8:14 am
I was using masm to make obj/lib files for my own use, but decided to switch to fasm.
For use in something like this:
and using an approach like this in fasm:
I can get things going, but am unsure if this is the correct way to do it, that is:
For use in something like this:
Code: Select all
Import "path\to\addTwoLongs.obj"
plusTwoLongs.l (longA.l ,longB.l) As "addTwoLongs"
EndImport
Debug plusTwoLongs(13,14)Code: Select all
format MS COFF
section '.text' code readable executable
public addTwoLongs
addTwoLongs:
pop ecx
pop eax
pop edx
push ecx
add eax, edx
ret- pop the return address
pop the params
push the return
do the job
ret.