开发者

What's the syntax for this kind of declaration in MASM32?

开发者 https://www.devze.com 2023-02-16 17:25 出处:网络
szCaption db \'System Information\', 0 I now understand开发者_开发百科 such declarations: var_name type default_value
szCaption db 'System Information', 0

I now understand开发者_开发百科 such declarations:

var_name type default_value

Which has 3 parts. But what's the syntax for the declarations above?


Actually, a better description is:

var_name type comma-separated list of values

In your example, each character in the string is a byte. And so is the trailing zero. MASM allows either characters or numbers.

Your example forms a null-terminated string.


db actually stands for 'define bytes' and can accept as arguments quoted strings (single or double quotes) and numbers, separated by commas.

0

精彩评论

暂无评论...
验证码 换一张
取 消