📜  func 汇编代码示例

📅  最后修改于: 2022-03-11 14:48:10.584000             🧑  作者: Mango

代码示例1
func:
    xor eax, eax
    mov eax, 10
    add eax, 5
    ret ;// essentially identical to: pop [register] -> jmp [register]


_start:
    call func
    mov ebx, eax ;// Address of this instruction is pushed onto the stack
    ;// ebx is now 15