Date: 09/01/2023: Don Bosco Institute of Technology Department of Information Technology Microprocessor Lab Experiment 1
Date: 09/01/2023: Don Bosco Institute of Technology Department of Information Technology Microprocessor Lab Experiment 1
MICROPROCESSOR LAB
Date: 16/01/2023
EXPERIMENT 2
Name : Srushti Shete
Class: SE IT
Roll No. : 60
Theory-:
1. The complement of the product of all terms is equal to the sum of complements of each term.
(A.B)' = A'+B'
Inputs Output
0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0
2. The complement of the sum of all the terms is equal to the product of the complements of
each term.
(A+B)' = A'.B'
0 0 0 1 1 1 1
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0
DON BOSCO INSITITUTE OF TECHNOLOGY
DEPARTMENT OF INFORMATION TECHNOLOGY
EXPERIMENT NO 4
Date: 07/02/2023
MICROPROCESSOR LAB
EXPERIMENT 4
THEORY :
The motherboard serves as a single platform to connect all of the parts of a computer together.
It can be considered as the backbone of the computer.
It connects the CPU, Memory, Hard drives, Optical drives, Video card, Sound card, and other
parts. It also connects Expansion cards directly or via cables.
1. North Bridge:
North bridge is also called as Host Bridge. The north bridge is directly connected to the Central
Processing Unit (CPU) for processing tasks that need the highest performance. These chip sets
act as a medium for communication between the CPU and parts of motherboard thereby,
Memory Controller Hub, being the other name for North Bridge.
Features:
• A north bridge communicates with processor via Front Side Bus or FSB for short.
• It controls the interaction with motherboard parts such as Accelerated Graphics Port
(AGP), Peripheral Component Interconnect (PCI), and other crucial parts.
Advantages:
• Easy communication is being established between parts of motherboard via North
Bridge.
• Faster data transfer due to easy communication access.
2. South Bridge:
The motherboard has a logical chip set compromising of two chips namely North and South
bridge. It is named South bridge as it sits in the South direction of Peripheral Component
Interconnect or PCI bus of motherboard.
Unlike North bridge, this chip is not directly connected to the CPU. North bridge acts as a
medium of communication between South bridge and Central Processing Unit. South bridge
controls all the Input and Output activities via CPU. Thereby it is also named as I/O Controller
Hub as it acts as a hub for all the I/O processing and functionalities.
Features :
The South bridge supports various components of a motherboard such as:
1. Peripheral Component Interconnect (PCI) –
South bridge supports the old and new versions of PCI bus as well.
3. Clock –
It provides a time quantum for each process and checks whether every process gets the
time limit for execution or not.
4. Power Management –
Controls the power and uses whenever necessary otherwise the power is saved for
further uses.
Advantages:
• Many of the input and output processing can be simultaneously controlled via South
bridge making it a huge advantage.
• Without this bridge, the IO controlling would not be possible.
A computer is any machine that can be programmed to carry out a set of algorithms and arithmetic
instructions.
5 parts of a computer
Whether it's a gaming system or a home PC, the five main components that make up a typical, present-day
computer include:
• A motherboard
• A Central Processing Unit (CPU)
• A Graphics Processing Unit (GPU), also known as a video card
• Random Access Memory (RAM), also known as volatile memory
• Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)
1. Motherboard
All components of a computer communicate through a circuit board called the motherboard.
2. Central Processing Unit (CPU)
The CPU is often called the "brain" of a computer, thanks to its direct plug connection to the motherboard,
and communication with all of the computer’s other components.
5. Storage
All computers need somewhere to store their data. Modern computers either use a Hard Disk Drive (HDD)
or Solid State Drive (SSD).
Don Bosco Institute of Technology
Department of Information Technology
Semester 4
Practical no. 5
Theory-:
1. The complement of the product of all terms is equal to the sum of complements of each term.
(A.B)' = A'+B'
Don Bosco Institute of Technology
Department of Information Technology
Class: SE
Name: Srushti Shete
Roll No: 60
Aim: Write a program to calculate the number of zeros and ones in an 8 bit number
Theory:-
Describe with examples
• Any 5 logic instructions of 8086
SHR Used to shift bits of a byte/word towards the right and put zero(S) in MSBs.
SHL/SAL Used to shift bits of a byte/word towards left and put zero(S) in LSBs.
Used to rotate bits of byte/word towards the right, i.e. LSB to MSB and to Carry
ROR
Flag [CF].
Used to rotate bits of byte/word towards the left, i.e. MSB to LSB and to Carry
ROL
Flag [CF].
RCR Used to rotate bits of byte/word towards the right, i.e. LSB to CF and CF to MSB.
RCL Used to rotate bits of byte/word towards the left, i.e. MSB to CF and CF to LSB.
Output
Don Bosco Institute of Technology
Department of Information Technology
Class:SE
Semester 4
Aim: Write a program to find the largest and smallest number out of 5 numbers. Output screenshots of the program
Theory
• Immediate Addressing
The addressing mode in which the data operand is a part of the instruction itself is
known as immediate addressing mode.
• Register Addressing
It means that the register is the source of an operand for an instruction.
MOV CX, AX; copies the contents of the 16-bit AX register into
; the 16-bit CX register),
ADD BX, AX
• Direct Addressing
The addressing mode in which the effective address of the memory location is written
directly in the instruction.
• Indexed Addressing
In this addressing mode, the operands offset address is found by adding the contents of
SI or DI register and 8-bit/16-bit displacements.
Theory-:
• OUT − Used to send out a byte or word from the accumulator to the provided port.
DON BOSCO INSTITUTE OF TECHNOLOGY
DEPARTMENT OF INFORMATION
TECHNOLOGYMICROPROCESSOR LAB
EXPERIMENT 10
Name: Srushti Shete
Class: SE IT
Roll No. : 60
Aim: Factorial
Theory-:
Macro :
Macro is a set of instruction and the programmer can use it anywhere in the program by using its name. It is
mainly used to achieve modular programming. So same set of instructions can be used multiple times when
ever required by the help of macro. Wherever macro’s identifier is used, it is replaced by the actual defined
instructions during compilation thereby no calling and return occurs.
Syntax of macro :
%macro macro_name number_of_parameters
<macro body>
%endmacro
Procedures :
Procedures or subroutines are very important in assembly language, as the assembly language programs
tend to be large in size. Procedures are identified by a name. Following this name, the body of the
procedure is described which performs a well-defined job. End of the procedure is indicated by a return
statement.
Syntax
proc_name:
procedure body
...
ret
The procedure is called from another function by using the CALL instruction. The CALL instruction should
have the name of the called procedure as an argument as shown below −
CALL proc_name
The called procedure returns the control to the calling procedure by using the RET instruction.