Changes

Jump to: navigation, search

Assembler Basics

8 bytes removed, 00:21, 24 January 2014
Format of an Assembly Language program
An assembly-language program consists of:
# Labels - [[Symbol|symbols]] that correspond to memory locations.
# Instructions - Mnemonics for an operation followed by zero or more arguments.
# Data - Values used by the program for things such as initial variable values and string or numeric constants.
<font color="red">.data</font>
<font color="blue">msg:</font> <font color="red">.ascii</font> <font color="orange">"Hello, world!\n"</font>
<font color="blue">len</font> = <font color="orange">. - msg</font>

Navigation menu