Answer the question
In order to leave comments, you need to log in
Can't get a character from a string on FASM?
Windows, FASM x86, exe
There is a PROCESSENTRY32 structure, I fill it through Process32First\Process32Next, and I need to get the first element from szExeFile.
I try like this, but it says "Operand size not specified":
mov eax, 0
cinvoke printf, pe32.szExeFile[eax]
Answer the question
In order to leave comments, you need to log in
Apparently, I need to learn more about assembler functions, because I am limited to only lea, mov, jmp, jnz, je, jz, etc. I didn’t know
about it, so I couldn’t complete this task.rep movsb
cld
cld
mov ecx,processname_len-1
lea esi,[processname+1]
lea edi,[processname]
mov byte al,[edi]
rep movsb
mov byte [edi],al
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question