汇编代码垃圾错误,我在哪里错了?

时间:2016-05-07 21:41:30

标签: inline-assembly

表达后我得到错误垃圾推送edipush ecx mov esi ... 这有什么问题?在gcc中使用intel语法,并启用-masm = intel ..

  (
   "    push eax"
    "   push edi"
    "  push ecx"

    " mov al,  byte ptr[esp + 0x8 + 0xC]"
    "mov edi, dword ptr[esp + 0x4 + 0xC]"
    "    mov ecx, dword ptr[esp + 0xC + 0xC]"
    "   rep stosb"

    "  pop ecx"
    " pop edi"
    "pop eax"
    "ret 0xC"
 );

0 个答案:

没有答案