Computer Science and Engineering: Submitted To Submitted by

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Computer Science and Engineering

Course Name : Microprocessor and Microcontroller Lab


Experiment No: 02
Experiment Name: Introduction to Assembly Language
Course Code : CSE-303
Submission Date: 02-03-2021

Submitted To Submitted By
Md Mahmuda Rahman Md Gousul Islam Hemonto
Lecturer Id :191002325
Department Of CSE Section: DB
Green University Of Bangladesh Department of CSE
Green University Of Bangladesh

1
Introduction to Assembly Language and EMU 8086
Objectives:
1. Assembly and execute instructions into the memory using
EMU8086
2. Edit existing source program
3. Explore the listing file identify its different parts.
4. Learn how to write assembly program Using simplified and
full segment definition.
Equipment:
1. EMU 8086
Data transfer Instructions :

Registers(Direct) : Move content of BX register of AX register


MOV AX, BX
Direct: Move contents of the variable labeled to AX register
MOV AX, COUNT
Immediate : Local CX register with the value 240d
MOV CX,00F0H
MOV CX,240
Memory : Local Cx register with the value at address 240
MOV CX,[0F0H]
Registers(Indirect) : Move content of AL register to memory location in BX
MOV [BX], AL

2
Arithmetic / Logical Instructions :

Arithmetic and Logical Instructions can be performed on 0-bit (byte) and 16-
bit values. The first Operand has to be a register and the result is stored in
that register.
Increment The contents of BX register by 4
ADD BX,4
Add The contents of AX register with the contents of CX register.
ADD AX,CX
Subtract 1 from the contents of AL register
SUB AL,1
Multiple AL by BL, the result will be in AX
MUL BL
Divide the contents of AL register with the value of CL and Stored the result
AX
DIV AX, CL

3
4
5
6
7

You might also like