txt equ <'Asm'> ; 可用 equ 定义字符串, 应使用 <>
; 用 equ 给函数重命名
Msg equ MessageBox
Exit equ <ExitProcess>
; 甚至代替整个表达式
ShowMsg equ <invoke MessageBox, NULL, addr szMsg, addr szCaption, MB_OK>
Msg textequ MessageBox
Exit textequ <ExitProcess>
ShowMsg textequ <invoke MessageBox, NULL, addr szMsg, addr szCaption, MB_OK>
num1 equ 2 ; 这里的 equ 换做 textequ 不行
num2 textequ <3> ; 如果用 textequ 定义整数或表达式也要放在 <> 中
txt textequ <'Asm'>
EQU后面可以跟地址表达式或数值表达式,但等号后面只能跟数值表达式。
最后
以上就是清秀云朵最近收集整理的关于宏中 equ textequ的的一些用法的全部内容,更多相关宏中内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复