[fpc-pascal] Re: Interface with NASM

leledumbo leledumbo_cool at yahoo.co.id
Thu Sep 16 13:16:12 CEST 2010


> 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.

I've tried that. Even a (stupid) trick like this:

section .data
charA db 'A'

section .text
global tes
tes:
  push ebp
  mov  ebp,esp
  mov  eax,charA
  mov  dword eax,[eax]
  push eax
  call printc
  leave
  ret

-- 
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Interface-with-NASM-tp2838671p2842117.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list