_asm
{
//----------------------------------
dword_type(DYN_LOADER_START_MAGIC)
//----------------------------------
_main_0:
pushad // save the registers context in stack
call _main_1
_main_1:
pop ebp
sub ebp,offset _main_1 // get base ebp
...... //many many assembler code line
}
I want to write code injection tool for Windows executables
But this _asm doesn't work gives: 64 C:\\Users\\ACharyyev\\Desktop\\test\\pemaker5\\pemaker\\Copy of loader.cpp `_asm' undeclared (first use this function)
There is asm() function seems to be work but I have to convert all vars (eg eax to %eax) and put newlines and so on, but _asm {} should work. I couldnt find anything to enable assembler in Project Properties and Compiler properties. Any idea.
Now i use DevCpp on Windows as an IDLE for this project.
__asm
可以工作,但你仍然需要使用AT&T,因为这是Dev-C ++支持的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.