Labels are symbolic representations of particular addresses in memory that can have either instructions to jump to, or variables to be fetched or stored by some memory access instruction.
In assembly program label is indicated by colon ':' at the end of the first word (contiguous sequence of non-whitespace characters) in the line.
example_label: <some code>
Label can either precede the labeled instruction or variable, or be on the same line.
During first pass of the assembler, all labels are added to look-up table, which is used on second pass to inline actual values for instruction arguments instead of their symbolic representations.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.