I do a program like this
szSystemPath db MAX_PATH dup (?)
szFileName db 'SexyPink',0
Invoke GetSystemDirectoryPath ,Addr szSystemPath ,MAX_PATH
Lea Ebx, Offset szSystemPath
Lea Ebx,
Mov Byte Ptr , '\'
Inc Ebx
Lea Esi Offset szFileName
Mov Edi Ebx
Mov Ecx SizeOf szFileName
Cld
Rep Movsb
but when i do ml /c /coff try.asm
follow instruction get error
Mov Edi Ebx
Mov Ecx SizeOf szFileName
Cld
ml note:error A2008: syntax error : in instruction
szSystemPath db MAX_PATH dup (?)
szFileName db 'SexyPink',0
Invoke GetSystemDirectoryPath ,Addr szSystemPath ,MAX_PATH
Lea Ebx, Offset szSystemPath
Lea Ebx,
Mov Byte Ptr , '\'
Inc Ebx
Lea Esi Offset szFileName
Mov Edi Ebx
Mov Ecx SizeOf szFileName
Cld
Rep Movsb
but when i do ml /c /coff try.asm
follow instruction get error
Mov Edi Ebx
Mov Ecx SizeOf szFileName
Cld
ml note:error A2008: syntax error : in instruction
You are missing commas... or is the compile error due to the usage of sizeof? I am not very sure.
SexyPink,
It might be easier if you learn/used higher level usage and then work your way down to moving bytes around.
Regards, P1 8)
It might be easier if you learn/used higher level usage and then work your way down to moving bytes around.
invoke lstrcat, addr szSystemPath, addr szBackSlash
invoke lstrcat, addr szSystemPath, addr szFileName
Regards, P1 8)