flat assembler
Message board for the users of flat assembler.

Index > Main > passing qword as call parameter

Author
Thread Post new topic Reply to topic
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 01 Aug 2006, 13:22
hello community, maybe i missing something, but i can't found answer, can i pass qword parameter through stdcall macro? i working in 32-bit mode and how i can doit in fasm?

something like this? or how?
Code:
push qword [value]
call _test

test:

retn 8
    

_________________
[not enough memory]
Post 01 Aug 2006, 13:22
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend 01 Aug 2006, 21:39
Fragment from WIN32AX.INC:
Code:
...
  match pushd =double [var],pushd value \{
   push dword [var+4]
   push dword [var]
   pushd equ \}
...    
In your situation it will be:
Code:
push dword [value+4]
push dword [value]
call _test

; but here refer to argument as qword
test:
fild qword [esp+4]

retn 8    
Post 01 Aug 2006, 21:39
View user's profile Send private message Visit poster's website Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 02 Aug 2006, 04:32
thanx reverend, it is possible to do with stdcall macro?
Post 02 Aug 2006, 04:32
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 02 Aug 2006, 09:12
Post 02 Aug 2006, 09:12
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.