Professional Documents
Culture Documents
of
Microprocessor and
Assembly Language
Programming
(3330705)
Semester – 3
Enrollment No :_________________________________________________________________________
CERTIFICATE
V.N.Soni Prof.H.J.Baldaniya
Index
Sr.No Page
Practical Name Date Grade Sign
. No
Study various simulators.
1
Implement program to transfer content from one
2
register to another register.
Implement program to swap contents of two different
3
registers.
Implement a program to copy the content of the one
4
memory location to other.
Implement program to swap contents of two different
5
memory locations.
Implement program to perform addition of two 8 bit
6
numbers.
Implement program to perform subtraction of two 8
7
bit numbers.
8 Implement program to add two 16 bit numbers.
9 Implement program to subtract two 16 bit numbers.
10 Implement program to perform BCD addition.
Implement a program to mask the lower four bits of
11
content of the memory location.
Implement a program to set higher four bits of
12
content of the memory location to 1.
Implement a program to perform AND operation of
13
two numbers stored in different memory locations.
Implement a program to perform OR operation of
14
two numbers stored in memory.
Implement a program to perform XOR of two
15
numbers stored in memory.
Implement a program to compare two numbers using
16 CMP and CPI. And examine the content of flag
register.
Implement program to perform 8 bit subtraction
17
using 1’s Complement and 2’s Complement.
Implement a program to find sum of integers from 0
18
to 9.
Implement a program to find sum of integers stored
19 in memory block. First memory location stored size
of array. Store result in register.
Implement a program to count no of 1’s in
20
Accumulator stored result in register B.
Implement a program to check whether a number is
even or odd which is stored in memory location. store
21
00H in register B if number is even else store FFH in
register B.
Implement a program to count no of zero, positive
22 and negative values in given block of data, stored
result in B,C,D registers.
Implement a program to find minimum from two
23 numbers stored in memory.Store minimum number
in register B.
Implement a program to move a block of the memory
24 starts at location 2050h to 4050h. the length of block
is given in register B.
Implement a program to multiply two numbers.
25
26 Implement program to find factorial of given number.
Implement a program to reverse a given array using
stack operation push and pop. Size of array is stored
27
in register C. Store reverse string in different memory
area.
Implement a program to count from 00H to FFH with
28
1 ms delay. with crystal frequency is 5MHz.
Implement a program to count from 00 to 99 (BCD)
29
with 1 ms delay. with clock frequency is 2MHz.
Implement a program to count from 00H to FFH and
30 FFH to 00H repeatedly with 1 ms delay. with crystal
frequency is 5MHz.
On the main screen of 8085 Simulator, Menu Bar, Editor, Assembler, Registers, Flags
Registers, Memory, Devices.
Edit
Tools
Settings
Simulation
Subroutine
View
The file will save with .asm extension. ASM means Assembler language Simulation
Module.
(4) Editor :
Here, editor is use for to write mnemonics code. We write here instruction like LDA, STA,
MVI, MOV, HLT, ADD etc.
(5) Assembler :
After clicking on Assemble, we will redirect to Assembler window. Here,
we get information of the register address, mnemonics code execution, Hex Code, Bytes
occupied by instruction, M-Cycles, T-States.
(6) Register :
(7) Memory :
The range of memory in 8085 microprocessor is 0000 H to FFFF H. There are 3
options for memory to be show :
1) Show entire memory content
2) Show only loaded memory location
3) Show directly to specified memory location.
Microprocessor based system the interrupts are used for data transfer between the
peripheral devices and the microprocessor. FIVE types of interrupt in 8085 microprocessor:
TRAP
INTR
RST 5.5
RST 6.5
RST 7.5
(11) Example
Here, I take an example :
Addition of two register’s values and store it in another register.
1. We write mnemonics code in editor->Assembler.
2. Then click on Assemble option which is given at the bottom right corner.
3. After clicking on Assemble, we will redirect to Assembler window.
4. Here, we get information of the register address, mnemonics code execution, Hex Code,
Bytes occupied by instruction, M-Cycles, T-States.
5. Then click on “Run all at a Time” for execute out mnemonics code.
OUTPUT ->
Explanation :
Output:
Program Code:
Output:
Program Code:
Output:
Program Code:
Output:
Program Code:
Output:
Program Code:
Output:
Program Code:
Output:
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________
Program Code:
Output:
Teacher’s Signature______________ Grade_______________