flat assembler
Message board for the users of flat assembler.
Index
> Main > Virtual directive |
Author |
|
revolution 07 May 2012, 13:45
If you want to push the address of a pointer then you would not place it in brackets.
Code: invoke MessageBox,0,addr usrn,addr usrn2,MB_OK Also when using ebp in a virtual block you will need to make memory space for it somewhere else you risk overwriting the stack. Code: sub esp,256 ;make space for our structure mov ebp,esp ;set ebp to point to our allocated memory |
|||
07 May 2012, 13:45 |
|
RKT878 07 May 2012, 14:15
Thanks Revolution, it took me some time experimentating though, but it works now.
Sorry for taking your time |
|||
07 May 2012, 14:15 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.