指令 | 功能 | 说明 |
---|---|---|
push %rax | %rsp = %rsp - 8 mem[%rsp] = %rax |
栈指针先下移,然后赋值 |
pop %rax | %rax = mem[%rsp] %rsp = %rsp + 8 |
先赋值,然后栈指针上移 |
call 0x12345 | pushl %rip movl $0x12345, %rip |
先%ip压栈,再写入新的ip |
ret | popl %rip | 把栈顶输入写入%rip |
subq $72, %rsp | null | null |
movq $9, 16(%rsp) | null | null |
null | null | null |
网友评论