flat assembler
Message board for the users of flat assembler.
Index
> Windows > Local Variables |
Author |
|
typedef 13 Feb 2014, 19:19
Another thing is to make sure you put a dummy value in your data section or just remove it. FASM will generate an invalid PE if you leave it out empty.
|
|||
13 Feb 2014, 19:19 |
|
Force 13 Feb 2014, 19:58
Code: format PE GUI 4.0 include '\fasm\include\win32a.inc' entry start section '.data' data readable writeable Buffer db 'Hello Word',0 section '.code' code readable executable start: stdcall testing invoke ExitProcess,NULL proc testing locals cnt dd ? msg rd 50 endl mov [cnt],25 invoke lstrcpy,msg,Buffer ret endp section '.idata' import data readable writeable library kernel32,'KERNEL32.DLL',\ user32,'USER32.DLL' include '\fasm\include\api\kernel32.inc' include '\fasm\include\api\user32.inc' error again |
|||
13 Feb 2014, 19:58 |
|
Walter 13 Feb 2014, 20:39
lea eax,[msg]
invoke lstrcpy,eax,Buffer |
|||
13 Feb 2014, 20:39 |
|
Force 13 Feb 2014, 21:06
Thank you Walter
it works now |
|||
13 Feb 2014, 21:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.