1,885
edits
Changes
→Format of an Assembly Language program
<font color="blue">msg:</font> <font color="red">.ascii</font> <font color="orange">"Hello, world!\n"</font>
<font color="red">.set</font> <font color="blue">len</font> <font color="orange">. - msg</font>
In this program, which was written using GNU Assembler (gas) syntax, text is coloured according to its type:
* <font color="orange">expressions</font>
* <font color="black">other syntax elements, such as prefixes and delimiters</font>
A symbol may be set in one of two ways: