Search code examples
assemblykeywordmasm

How does the 'label' keyword work in MASM?


What does this assembler code do?

someName label word
         dw 8 dup(0)

How does label work?


Solution

  • Typically label creates a symbolic name for the code/data that follows and also assigns it a type. It's similar to defining a variable with given name and type/size. But it does not actually allocate space for it. It can be used to create aliases to variables.