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.
