Micro - Lab File (1to8)
Micro - Lab File (1to8)
20CP202P
ACY: 2023-24
Name:DARSHIL MENDAPARA
Roll No:23BCP228
Submitted to
November 2024
SCHOOL OF TECHNOLOGY
PANDIT DEENDAYAL ENERGY UNIVERSITY
GANDHINAGAR, GUJARAT, INDIA
CERTIFICATE
Date of Submission:
MAHESH SIR
(Faculty In-Charge)
SCHOOL OF TECHNOLOGY
PANDIT DEENDAYAL ENERGY UNIVERSITY
GANDHINAGAR, GUJARAT, INDIA
INDEX
Sr.
Name of Experiment Page No. Date Sign Remark
No.
Study of 8086 Microprocessor
01 architecture, and basis of
programming
Study of simulation tool and
02 familiarization to instructions of
8086
Write an assembly language
03 programs for addition, and
subtraction of 8, 16, 32-bit data
Write an assembly language
04 programs for multiplication and
division of 8, 16, 32-bit data
Write an assembly language
programs for logical operations
05
(NOT, AND, OR, XOR, NAND,
NOR and XNOR)
Write an assembly language
06 programs to find 1’s and 2’s
complement of 8/16-bit data
Write an assembly language
07 program to swap data from two
memory locations
Write an assembly language
08 programs for finding out largest
data from n-memory locations
Write an assembly language
09 programs to add and subtract two 8-
bit BCD numbers
Write an assembly language
10 program to arrange data in
ascending order
Introduction to 8051
11 microcontroller and implementation
of basic LED blinking control
Implementation of motor control
12
using 8051 microcontrollers
Guidelines to students
PRACTICAL NO. – 3
AIM: Write an assembly language programs for addition, and subtraction of 8, 16, 32-bit
data
A) Addition using 8 bit data.
CODE:-
OUTPUT :-
B) Addition using 16 bit data.
CODE:-
OUTPUT:-
C) Subtraction using 8 bit data.
CODE:-
OUTPUT:-
D) Subtraction using 16 bit data.
CODE:-
OUTPUT:-
PRACTICAL NO. – 4
AIM: Write an assembly language programs for multiplication and division of 8, 16, 32-
bit data
OUTPUT:-
B) Multiplication using 16 bit data.
CODE:-
OUTPUT:-
D) Division using 8 bit data.
CODE:-
OUTPUT:-
E) Division using 16 bit data.
CODE:-
OUTPUT:-
PRACTICAL NO: 5
AIM:
Write an assembly language programs for logical operations (NOT, AND, OR, XOR,
NAND, NOR and XNOR).
A. NOT
CODE:
OUTPUT:
B. AND
CODE:
OUTPUT:
C. OR
CODE:
OUTPUT:
D. XOR
CODE:
OUTPUT:
E. NAND
CODE:
OUTPUT:
F. NOR
CODE:
OUTPUT:
G. XNOR
CODE:
OUTPUT:
Conclusion:
In summary, logic gates are fundamental to the operation and design of digital systems,
enabling the creation of efficient, reliable, and powerful electronic devices.
PRACTICAL NO: 6
AIM:
Write an assembly language programs to find 1’s and 2’s complement of 8/16-bit data.
1. 1’s Complement
CODE:
OUTPUT:
2. 2’s Complement
CODE:
OUTPUT:
Conclusion:
2's complement is widely used in computer systems for representing signed integers due to
its advantages in arithmetic operations and its unambiguous representation of zero.
PRACTICAL NO: 7
AIM:
Write an assembly language program to swap data from two memory locations.
I. 8-bit Data
CODE:
OUTPUT:
OUTPUT:
Conclusion:
Data swapping in the 8086 microprocessor involves a systematic approach using registers
and assembly instructions to transfer data between memory locations. The process is
facilitated by the efficient use of addressing modes and the flexibility of the instruction set.
PRACTICAL NO: 8
AIM:
Write an assembly language programs for finding out largest data from n-memory
locations.
CODE:
OUTPUT:
Conclusion:
From this program, I learnt about the loop and different jump functions like JNS, JNZ,
JNC, JC, JS, JZ and LOOP.