flat assembler
Message board for the users of flat assembler.
Index
> Windows > how do you make the "return" macro return a value? |
Author |
|
madmatt 17 Apr 2005, 20:25
Is there a way to make the "return" macro in the "proc" macro take an argument? This is would save me some time in typing.
|
|||
17 Apr 2005, 20:25 |
|
Tommy 18 Apr 2005, 06:06
Assigning a value to EAX and then "return"... Ain't that easy enough?
|
|||
18 Apr 2005, 06:06 |
|
madmatt 18 Apr 2005, 08:56
Should've included an example, I just want to do this: return eax, or something like return [ecx+edx*4]. It would be just a bit easier, that's all.
|
|||
18 Apr 2005, 08:56 |
|
Vasilev Vjacheslav 18 Apr 2005, 10:23
Code: call _myproc, NULL proc _myproc, lpParam mov eax,[lpParam] add eax,012345678h return endp |
|||
18 Apr 2005, 10:23 |
|
madmatt 19 Apr 2005, 11:28
Thanks Tommy! Just change the %_ to _% and it works good!
Matt |
|||
19 Apr 2005, 11:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.