flat assembler
Message board for the users of flat assembler.
Index
> Windows > Procedures vs. Macros |
Author |
|
RedGhost 11 Jun 2006, 00:41
with macros
Code: include 'PROC32.INC' proc name param1, param2 mov eax, <return value> ret endp i believe fasm supports MASM style procdures now such as Code: name:BYTE/:DWORD etc or you can do it manually Code: param1 equ ebp+8 ;delcare variable one way name: label param1 DWORD at ebp+8 ;delcare variable another way push ebp mov ebp, esp mov [param1], <value> mov esp, ebp pop ebp mov eax, <return value> ret _________________ redghost.ca |
|||
11 Jun 2006, 00:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.