flat assembler
Message board for the users of flat assembler.
Index
> Main > How do a normal rb API to a register |
Author |
|
gumletis 01 Jan 2005, 18:41
anyone?
|
|||
01 Jan 2005, 18:41 |
|
polygon7 01 Jan 2005, 21:45
Hi,
you could try this: Code: include '%fasminc%\win32ax.inc' .data sysdir dd ? .code start: invoke LocalAlloc,LMEM_FIXED,100 mov [sysdir],eax invoke GetWindowsDirectory,eax,100 [...] invoke LocalFree,sysdir .end start _________________ best regards p7 |
|||
01 Jan 2005, 21:45 |
|
gumletis 02 Jan 2005, 10:16
when i do this, it will compile fine but crash when i start it
Code: include '%fasminc%\win32ax.inc' .data sysdir dd ? .code start: invoke LocalAlloc,LMEM_FIXED,100 mov [sysdir],eax invoke GetWindowsDirectory,eax,100 invoke MessageBox,0,eax,eax,0 invoke LocalFree,sysdir .end start _________________ LOOOL |
|||
02 Jan 2005, 10:16 |
|
JohnFound 02 Jan 2005, 11:01
Code: include '%fasminc%\win32ax.inc' .code start: invoke LocalAlloc,LMEM_FIXED,100 mov esi, eax invoke GetWindowsDirectory,esi,100 invoke MessageBox,0,esi,esi,0 invoke LocalFree,esi invoke ExitProcess, 0 .end start |
|||
02 Jan 2005, 11:01 |
|
gumletis 02 Jan 2005, 11:17
thanks to you all, it work!
|
|||
02 Jan 2005, 11:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.