You are on page 1of 1

MAP notes

Chapter 5: 8086 Assembly Language programming Part 1


Model of 8086 Assembly language Program
Instruction format:
The assembly language program is divided into fields, separated by spaces and tabs. A format
for a typical line from assembly language program can be given as.
Label:

Mnemonic

Operand1, Operand2

; Comment

The first field, which is optional, is the label field, used to specify symbolic labels. A label is
an identifier that is assigned to the address of the first byte of the instruction in which it
appears.
The second field is mnemonic, which is compulsory. All instructions must contain a
mnemonic.
The third and following fields are operands. The presence of the operands depends on the
instruction. Some instructions have no operands, some have one, and some have two. If there
are two operands, they are separated by a comma.
The last field is a comment field. It begins with a semicolon and continues to the end of the
line. The comments are for our benefits, they tell us what the program is trying to
accomplish.

Assembler directives:
There are some instructions in the assembly language program which are not a part of the
processor instruction set. These instructions are instructions to the assembler, linker, and
loader. These assembler directives to not generate any executable machine code.

You might also like