flat assembler
Message board for the users of flat assembler.
Index
> Main > Bug or my Error??? |
Author |
|
revolution 13 Nov 2005, 00:42
Code: STRUCTURE : struct PROCESSENTRY32 dwSize dd ? cntUsage dd ? th32ProcessID dd ? th32DefaultHeapID dd ? th32ModuleID dd ? cntThreads dd ? th32ParentProcessID dd ? pcPriClassBase dd ? dwFlags dd ? szExeFile rb 260 ends |
|||
13 Nov 2005, 00:42 |
|
shism2 13 Nov 2005, 00:44
AH OK thanks didn't know that
Now I have another problem which has never happened to me... Code: proc _T2 mov eax,sizeof.PrE mov [PrE.dwSize],eax invoke CreateToolhelp32Snapshot,TH32CS_SNAPPROCESS,0 mov [temp],eax invoke Process32First,eax, PrE mov ebx,100 call T2 ret endp The program compiles BUT when I open the exe in Ollydbg... This part of the code isn't there.. I also tried doing this Code: jmp _T2 proc _T2 mov eax,sizeof.PrE mov [PrE.dwSize],eax invoke CreateToolhelp32Snapshot,TH32CS_SNAPPROCESS,0 mov [temp],eax invoke Process32First,eax, PrE mov ebx,100 call T2 ret endp However when I do that I get this : Quote: flat assembler version 1.64 |
|||
13 Nov 2005, 00:44 |
|
LocoDelAssembly 13 Nov 2005, 03:32
Did you tried "mov eax,sizeof.PROCESSENTRY32"?
When there is no reference to a procedure the procedure is not assembled, that's the reason why you can't see it with Ollydbg |
|||
13 Nov 2005, 03:32 |
|
shism2 13 Nov 2005, 03:44
That's what I was thinking... The fasm asmbeller doesn't add it ..
Nope It still gives me a problem |
|||
13 Nov 2005, 03:44 |
|
Reverend 13 Nov 2005, 11:55
1 - in masm you could use 'sizeof variable', in fasm you cannot. But 'struct' macros defines 'sizeof.STRUCTURE' as constant. But remember it's structure's name after 'sizeof.' not variable's name.
2 - you must use '_T2' label somewhere in the file to let fasm include it in executable. Just put somewhere in data 'dd _T2' |
|||
13 Nov 2005, 11:55 |
|
LocoDelAssembly 13 Nov 2005, 15:23
What problem?
Actually the PROC macro doesn't add the code by doing "if used name". |
|||
13 Nov 2005, 15:23 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.