[英]_asm doesnt work in C code, how to enable it
_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 我想为Windows可执行文件编写代码注入工具
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) 但是这个_asm不起作用给出:64 C:\\ Users \\ ACharyyev \\ Desktop \\ test \\ pemaker5 \\ pemaker \\ loader.cpp的副本`_asm'未声明(首先使用此函数)
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. 有asm()函数似乎是工作但我必须转换所有变量(例如eax到%eax)并放置换行符等,但_asm {}应该工作。 I couldnt find anything to enable assembler in Project Properties and Compiler properties. 我找不到任何在Project Properties和Compiler属性中启用汇编程序的东西。 Any idea. 任何想法。
Now i use DevCpp on Windows as an IDLE for this project. 现在我在Windows上使用DevCpp作为此项目的IDLE。
__asm
可以工作,但你仍然需要使用AT&T,因为这是Dev-C ++支持的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.