Posted on 2009-10-09 14:40
王小明 阅读(280)
评论(0) 编辑 收藏 引用
MASM ------------> GNU Assembly
----------------------------------------
[ebp-4] ------------> -4(%ebp)
[foo+eax*4] --------> foo(, %eas, 4)
[foo] ---------------> foo(, 1)
gs:f00 ------------->%gs:f00
mov ebx, eax ------> movl %eax, %ebx
mov eax, 25 -------> movl $25, eax
mov [eax], 25 ------> movl $25, (%eax)
mov [eax+2], 25 ---> movl $25, 2(%eax)
public --------------> .globl