flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > When ESP changes |
Author |
|
Tomasz Grysztar 08 Jan 2016, 16:50
You could try to apply a modification to macros this way:
Code: include 'win32ax.inc' macro pushd value { pushd value offset@stack = offset@stack + 4 } macro invoke statement& { define esp (esp+offset@stack) offset@stack = 0 invoke statement restore esp } .code start: push string1 invoke MessageBox,HWND_DESKTOP,dword [esp],invoke GetCommandLine,MB_OK invoke ExitProcess,0 string1: db 'Hello!',0 .end start |
|||
08 Jan 2016, 16:50 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.