[fpc-pascal] Interface with NASM
Jeppe Johansen
jepjoh2 at kom.aau.dk
Thu Sep 16 13:26:36 CEST 2010
Pushes/pops on x86/x86_64 are always word sized
Den 16-09-2010 11:44, Jonas Maebe skrev:
>
> On 14 Sep 2010, at 08:35, leledumbo wrote:
>
>> segment .text
>> global tes
>> tes:
>> push ebp
>> mov ebp,esp
>> push 65
>
> Check that this puts a 32 bit value on the stack rather than an 8 bit
> or 16 bit one. You may need "push dword 65" or something like that.
>
>
> Jonas
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list