100% found this document useful (1 vote)
336 views

Lab 01: Introduction To Assembly Language: Theory

goodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgood

Uploaded by

Google User
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
336 views

Lab 01: Introduction To Assembly Language: Theory

goodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgood

Uploaded by

Google User
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Lab 01: Introduction to Assembly Language

Objective(s):

• Introduction to Assembly Language


• Familiarization with Assembly Language Tools

Theory:
Assembly Language:

Assembly language is a low-level programming language for computers, microprocessors,


microcontrollers, and other programmable devices in which each statement corresponds to a single machine
language instruction. An assembly language is specific to a certain computer architecture, in contrast to
most high-level programming languages, which generally are portable to multiple systems.

Assembly language programs are converted into executable machine code by a utility program referred to
as an assembler, the conversion process being referred to as assembly or assembling the program.

Advantages of Assembly Language:


➢ Assembly language is more human-readable than machine language.
➢ It can directly communicate with hardware.
➢ Uses symbolic coded instructions which are easier to remember
➢ Programming is simplified as a programmer does not need to know the exact storage location of
data and instructions.
➢ It compiles directly into machine code and thus you have very direct control over memory.

Disadvantages of Assembly Language:


➢ Assembler languages are unique to specific types of computers.
➢ Programs are not portable to other computers.
➢ assembly language is specific to a particular machine architecture. assembly languages are designed
for specific make and model of a microprocessor.
➢ It takes lot of time to code or write the program, as it is more complex in nature.
➢ A program written in assembly language takes more execution time compared to machine language

Department of Computer Sciences 1 Semester BS CS 03


CEL21: Computer Organization & Assembly Language Lab Lab 01: Assembly Language Tools
Introduction to Assembly Language Tools
Software tools are used for editing, assembling, linking, and debugging assembly language programming.
You will need an assembler, a linker, a debugger, and an editor. These tools are briefly explained below.

Assembler
An assembler is a program that converts source-code programs written in assembly language into object
files in machine language. Popular assemblers have emerged over the years for the Intel family of
processors. These include MASM (Macro Assembler from Microsoft), TASM (Turbo Assembler from
Borland), NASM (Netwide Assembler for both Windows and Linux), and GNU assembler distributed by
the free software foundation.

Linker
A linker is a program that combines your program's object files and link libraries, and produces a single
object file created by the assembler with other executable program.

Debugger
A debugger is a program that allows you to trace the execution of a program
and examine the content of registers and memory.

Editor
You need a text editor to create assembly language source files. You can use NotePad , or any
other editor that produces plain ASCII text files.

Emu8086
Emu8086 combines an advanced source editor, assembler, disassemble and software emulator (Virtual PC)
with debugger. It compiles the source code and executes it on emulator step by step.
Visual interface is very easy to work with. You can watch registers, flags and memory while your program
executes.

Installation Steps
1. Go to https://emu8086-microprocessor-emulator.en.softonic.com/download
2. Download EMU8086
3. Install EMU8086
4. Once you install EMU8086 go to start menu:

Department of Computer Sciences 2 Semester BS CS 03


CEL21: Computer Organization & Assembly Language Lab Lab 01: Assembly Language Tools
Turbo Assembler (TASM)

Let’s Get Started.


Step 1 :
Download and Install DOS-BOX and MP (Microprocessor) Zipped folder
Go to: https://drive.google.com/file/d/0B36ww40izFp6dkVWOVk0c1VnOFE/view

Step 2:
Extract the ‘MP’ folder and Paste it on your C:\ Drive

Department of Computer Sciences 3 Semester BS CS 03


CEL21: Computer Organization & Assembly Language Lab Lab 01: Assembly Language Tools
Step 3 :
-Open DOS-BOX from your desktop.

Department of Computer Sciences 4 Semester BS CS 03


CEL21: Computer Organization & Assembly Language Lab Lab 01: Assembly Language Tools
Department of Computer Sciences 5 Semester BS CS 03
CEL21: Computer Organization & Assembly Language Lab Lab 01: Assembly Language Tools

You might also like