Changes

Jump to: navigation, search

Assembler Basics

2 bytes added, 15:10, 19 January 2016
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:

Navigation menu