Memory instructions: MOV, PUSH, POP, etc
Most instructions can take a memory address
b,w,l,q分别代表8位, 16位,32位和64位
以下是几种命令的等价方式:
pushl %eax
subl $4,%esp
movl %eax, (%esp)
popl %eax
movl (%esp), %eax
addl %4,%esp
call 0x12345
pushl %eip(*)
movl $0x12345, %eip(*)?
ret
popl %eip(*)
enter
pushl %ebp
movl %esp,%ebp
leave
movl %ebp,%esp
popl %ebp
AT&T语法链接:
http://www.ibm.com/developerworks/cn/linux/l-assembly/index.html
阅读(1475) | 评论(0) | 转发(0) |