+ -
当前位置:首页 → 问答吧 → 看不懂这段宏的意思,哪位大哥指教一下好不好

看不懂这段宏的意思,哪位大哥指教一下好不好

时间:2011-09-30

来源:互联网

FlowerKey MACRO
  LOCAL label_1,label_2,label_3
  call label_1
db 'WeSsEw!',0
jmp label_2
db 'thunkcode',0
label_1:
pop eax
add eax,8
push eax
call label_3
db 'RightWay!',0
label_3:
pop eax
pop eax
jmp eax
label_2:
ENDM

作者: weiai789   发布时间: 2011-09-30

Assembly code

FlowerKey MACRO                   ;宏定义开始
  LOCAL label_1,label_2,label_3   ;这一句定义三个标签
  call label_1                    ;调用label_1标签
db 'WeSsEw!',0                    ;定义一个字符串'WeSsEw!'以0(\0)为字符串结束符
jmp label_2                       ;跳转到lable_2标签
db 'thunkcode',0                  ;定义一个字符串'thunkcode!'以0(\0)为字符串结束符
label_1:                          ;label_1标签开始
pop eax                           ;弹出数据到eax寄存器
add eax,8                         ;将eax寄存器数据加8
push eax                          ;将数据压入eax寄存器
call label_3                      ;调用label_3标签
db 'RightWay!',0                  ;定义一个字符串'RightWay!'以0(\0)为字符串结束符
label_3:                          ;label_1标签开始
pop eax                           ;弹出数据到eax寄存器
pop eax                           ;弹出数据到eax寄存器
jmp eax                           ;跳转到以eax中的内容作为地址的内存单元
label_2:                          ;label_2标签开始
ENDM                              ;宏定义结束

作者: wangliangffaflgh   发布时间: 2011-09-30

热门下载

更多