【发布时间】:2014-12-20 07:57:11
【问题描述】:
我正在尝试编写用于打印字符串的宏。此代码工作正常:
include \masm32\include\masm32rt.inc
.const
enterA db "a: ", 0
.code
main proc
invoke crt_printf, addr enterA
invoke ExitProcess, NULL
main endp
end main
但是如果我为此定义宏..
include \masm32\include\masm32rt.inc
.const
enterA db "a: ", 0
.code
input macro tip
invoke crt_printf, addr tip
endm
main proc
input enterA
invoke ExitProcess, NULL
main endp
end main
所以,我认为不可能在宏中使用调用。为什么?
【问题讨论】: