You are on page 1of 6

INTRODUCTION TO ASSEMBLERS

An assembler translates a file of assembly language statements into a file of binary machine instructions and binary data. The translation process has two major parts. The first step is to find memory locations with labels so the relationship between symbolic names and addresses is known when instructions are translated. The second step is to translate each assembly statement by combining the numeric equivalents of opcodes, register specifiers, and labels into a legal instruction. As shown, the assembler produces an output file, called an object file, which contains the machine instructions, data, and bookkeeping information

The process that execute file.

There are two types of passes in assembler to produce the executable program.
One-pass assemblers go through the source code once and assume that all symbols will be defined before any instruction that references them.

Two-pass assemblers create a table with all symbols and their values in the first pass, then use the table in a second pass to generate code. The assembler must at least be able to determine the length of each instruction on the first pass so that the addresses of symbols can

Types of assembler
1. 2. 3. 4. 5. 6. YASM FASM OSIMPA (SHASM) AASM TDASM HLA

1.Yasm

You might also like