flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
madmatt
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.
|
|||
![]() |
|
Tommy
Assigning a value to EAX and then "return"... Ain't that easy enough?
|
|||
![]() |
|
madmatt
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.
|
|||
![]() |
|
Vasilev Vjacheslav
Code: call _myproc, NULL proc _myproc, lpParam mov eax,[lpParam] add eax,012345678h return endp |
|||
![]() |
|
madmatt
Thanks Tommy! Just change the %_ to _% and it works good!
Matt |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.