What's the syntax for this kind of declaration in MASM32?
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.
精彩评论