Uploaded by Joshua Ounga

micro p assignment

advertisement
MICROPROCESSOR PRACTICAL REPORT
NAME: Brian Ndung’u Irungu
REG N0: PA107/G/7463/19
COURSE: computer systems engineering
Lab #2
UNIT: microprocessor and assembly language programming
Date: 17/2/2022
MICROPROCESSOR PRACTICAL REPORT
OBJECTIVES:
1: Assembling the program.
2: De-assembling the program.
INTRODUCTION:
This lab practical was our first experience programming for
microprocessors, as well as configuring and writing code to the 8085microprocessor kit. The first part of the practical was assembling
contents of the accumulator and register c and performing ADD C
instruction to the contents. Once completed, we had to de-assemble
the program.
EQUIPMENTS USED:
1. 8085-M85-04 microprocessor kit.
2. Power cable.
3. Keyboard.
PROCEDURE
 Addition of two decimal numbers
 The program will add two decimal numbers lying at 2EH and 6CH
and the result will be stored at 9AH.
 Key in the program given below.
MICROPROCESSOR PRACTICAL REPORT
Memory
Adress
2000
2003
2004
2005
2006
2007
2008
2009
Codes
Mnemonics
Operand
21,OA,20
7E
23
LXI
MOV
INX
H,2EH
A,M
86
27
23
77
EF
ADD
DAA
INX
MOV
RST
Address data
H
M
H
M,A
5
2EH=00101110
6CH=01101100
9AH=10011010
DISCUSSION
Assembling
After keying in the program, press ESC then press M to be able to enter the digits.
2EH=00101110
6CH=01101100
Then press >
Press G
G2009:EF
Starting address 2000>
Press R then A
MICROPROCESSOR PRACTICAL REPORT
De-assembling
Press reset then enter the program starting address 2000 2EH.
Enter the list address as 2000.
Press enter until the entire program is de-assembled.
CONCLUSION:
This practical was a thorough introduction to 8085-microprocessor kit.
Not only did we have an opportunity to assemble and de-assemble the
program, but we were able to produce functioning code in the kit. I
very much enjoyed working through the small problems we had and
overall learned a great deal from the practical.
REFFERENCES:
1. Microprocessor 8085 practical manual basics, programming and interfacing
; DR DINESH V KALA
2. Microprocessor and introduction to microcontrollers
; Atul P. Godse
3. Class Notes
Download