Search code examples
syntaxassemblymasm32

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?


Solution

  • 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.