Re: Problem Linking (win32)
- From: nbaker2328 <spamtrap@xxxxxxxxxx>
- Date: Wed, 23 Jul 2008 18:28:01 -0700 (PDT)
You might have better results if you start with a simple solution and
then add complexity in incremental steps. For instance:
,--
| hey.asm
,--
; nasm -f win32 -o hey.obj hey.asm
; gcc -o hey.exe hey.obj
section .data
format db 10, 'Result = %d', 10, 0
section .text
global _main
extern _printf
_main:
push 0x05
push 0x08
call AddFunc
push eax
push format
call _printf
add esp, 8
xor eax, eax
ret
AddFunc:
mov eax, [esp+4]
add eax, [esp+8]
ret 8
`--
Nathan.
.
- Follow-Ups:
- Re: Problem Linking (win32)
- From: nbaker2328
- Re: Problem Linking (win32)
- References:
- Problem Linking (win32)
- From: bwaichu@xxxxxxxxx
- Problem Linking (win32)
- Prev by Date: Re: Problem Linking (win32)
- Next by Date: Re: Problem Linking (win32)
- Previous by thread: Re: Problem Linking (win32)
- Next by thread: Re: Problem Linking (win32)
- Index(es):
Relevant Pages
|