Changes

Jump to: navigation, search

Assembler Basics

114 bytes added, 16:54, 19 January 2016
no edit summary
A symbol may be set in one of three ways:
# Using the <code>.set</code> directive (in the example above, len line)
# Using an assignment using an equals sign (in the example above, stdout line), which the GNU assembler treats as an alternative syntax for the <code>.set</code> directive
# As a label (such as _start or msg in the example above). A label set in this way is identified by the trailing colon, and is set to the current memory location in the instruction or data sequence. Labels may be used for loading/storing information, or as the target of branches/jumps.

Navigation menu