=======
=源文件=
=======
BITS 32
push ebp
mov ebp,esp
sub esp,40h
push ebx
push esi
push edi
lea edi,[ebp-40h]
mov ecx,10h
mov eax,0CCCCCCCCh rep stos dword ptr [edi]
mov esi,esp
push offset string "msvcrt.dll" (0042202c)
call dword ptr [__imp__LoadLibraryA@4 (0042715c)]
cmp esi,esp
call __chkesp (00401190)
push offset string "command.com" (0042201c)
call system (00401080)
add esp,4
xor eax,eax
pop edi
pop esi
pop ebx
add esp,40h
cmp ebp,esp
call __chkesp (00401190)
mov esp,ebp
pop ebp
ret
====================================
错误显示:
test.asm:11: error: parser: instruction expected
test.asm:13: error: comma or end of line expected
test.asm:14: error: comma or end of line expected
test.asm:16: error: comma or end of line expected
test.asm:17: error: comma or end of line expected
test.asm:18: error: comma or end of line expected
test.asm:26: error: comma or end of line expected
====================================
汇编的代码我是直接从VC的里面原封不动的复制过来的,为什么在编译的时候会出现这个错误?难道VC生成的汇编代码不对吗?
========
还有,再咨询一个技巧
在VC里面复制汇编的代码怎么才能值复制汇编的代码,而忽略前面显示的地址。因为我复制过来的全都是带着地址的。在编译以前又现编辑的。有没有什么小技巧?