【格式】
COMMENT delimiter [[text]]
[[text]]
[[text]] delimiter [[text]]
[[text]]
[[text]] delimiter [[text]]
【注意】
比如注释如下,则会在第一个"a"("szMessage1"中的"a")地方停止多行注释。
COMMENT a
szMessage1 db "Hello World 1",0
szMessage2 db "Hello World 2",0
szCaption db "I ran out of imagination...",0
a
szMessage1 db "Hello World 1",0
szMessage2 db "Hello World 2",0
szCaption db "I ran out of imagination...",0
a
所以一般都在delimiter后面加上特殊符号(!,~ 等),比如:
comment start!
szMessage1 db "Hello World 1",0
szMessage2 db "Hello World 2",0
szCaption db "I ran out of imagination...",0
szMessage2 db "Hello World 2",0
szCaption db "I ran out of imagination...",0
end comment start!
但是如果程序里面(通常是注释)可能也有“!”,所以这个时候就会出错。
但是如果程序里面(通常是注释)可能也有“!”,所以这个时候就会出错。
Reference:
没有评论:
发表评论