a little probleme
From: elekis (elekis_at_gawab.com)
Date: 04/14/04
- Next message: T.M. Sommers: "Re: Help translating Intel to AT&T"
- Previous message: Michal Janeczek: "Re: Extremely slow SSE code on Athlon XP"
- Next in thread: jon3k: "Re: a little probleme"
- Reply: jon3k: "Re: a little probleme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Apr 2004 17:49:15 +0000 (UTC)
hi,
first , sorry for my englich, but it'isnt my motherlanguage
i have a little problem whith that language (asm)
in the little prog
mov eax [ebp+8]
mov ebx [ebp+12]
pusha
push eax
push ebx
call getAndSetIndiceASM
pop eax
pop ebx
popa
getAndSetIndiceASM is a other fonction in ia other file.asm
CPU 386
GLOBAL mainASM
getAndSetIndiceASM:
push ebp
mov ebp, esp
mov eax [ebp+8]
mul dword [ebp+12]
mov esp, ebp
pop ebp
ret
my prob is, how can i have to return what there is in eax because if I
leave in eax, the pop eax erase that, if if i push eax there is never
view because there is a mov esp ebp. so wat is the convention to pass
the value of return between to fonction in assembleur??
merci
a++
- Next message: T.M. Sommers: "Re: Help translating Intel to AT&T"
- Previous message: Michal Janeczek: "Re: Extremely slow SSE code on Athlon XP"
- Next in thread: jon3k: "Re: a little probleme"
- Reply: jon3k: "Re: a little probleme"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]