[fpc-pascal] Re: Interface with NASM
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Thu Sep 16 11:35:54 CEST 2010
On Thu, Sep 16, 2010 at 11:10 AM, leledumbo <leledumbo_cool at yahoo.co.id> wrote:
> Just by changing to ATT syntax? Weird...
No, I removed the function header:
push ebp
mov ebp,esp
And function footer:
leave
ret
Because FPC automatically adds them, putting another header was the
cause of the crash in my code. But this doesn't seam to be the case
with the nasm object file.
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list