Labels act as place markers.
Marks the address (offset) of code and data.
Easier to memorize and more flexible.
mov ax, [0020] → mov ax, val
Rules:
must be unique
example:
myArray BYTE 10
ends with a colon
The target of jump and loop instructions
example:
Marks the address (offset) of code and data.
Easier to memorize and more flexible.
mov ax, [0020] → mov ax, val
Rules:
- Data label:
must be unique
example:
myArray BYTE 10
- Code label:
ends with a colon
The target of jump and loop instructions
example:
L1: mov ax, bx
...
jmp L1