flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
JohnFound 05 Mar 2014, 18:32
Code: push x ;pass address of val call change_by_ref invoke exit,0 val dd 0 proc change_by_ref, SomePointer mov eax, [SomePointer] mov dword [eax], 34 ret endp The macro proc will define for you the procedure stack frame management code. If you really want to do everything by hands, don't use "proc": Code: push x ;pass address of val call change_by_ref invoke exit,0 val dd 0 change_by_ref: mov eax, [esp+8] mov dword[eax], 34 ;supposed to change val in main? Nope? retn _________________ Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9 |
|||
![]() |
|
system error 05 Mar 2014, 22:00
JohnFound wrote:
thanks john found. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.