The document outlines an experiment to write a program for adding two 8-bit numbers using the 8085 microprocessor. It details the necessary equipment, the memory locations for the input numbers, and the steps for storing the program, declaring inputs, executing the program, and verifying the output. The example provided shows the machine codes and the expected result of the addition operation.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views2 pages
MPMC Experiment No-2
The document outlines an experiment to write a program for adding two 8-bit numbers using the 8085 microprocessor. It details the necessary equipment, the memory locations for the input numbers, and the steps for storing the program, declaring inputs, executing the program, and verifying the output. The example provided shows the machine codes and the expected result of the addition operation.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
=a_—_ ——s—
TO WRITE A PROGRAM TO ADD TWO 8 BIT
Exp. No. 1
ie NUMBER USING 8085 MICROPROCESSOR
AIM OF THE EXPERIMENT:
‘To write a program to add two 8 bit number using 8085 microprocessor.
EQUIPMENT REQUIRED:
808S5microprocessor trainer kit.
THEORY:
The 1*number 49H is in the memory location 2501H.
‘The 2"¢binary number S6H is in the memory location 2502H.
The result is to be stored in the memory location 2503H.
PROCEDURE -
STEP 1- STORAGE OF PROGRAM MACHINE CODES:
Machine codes of the program to be executed, should be stored in their memory
available on 8085 trainer kitas
RESET REL EXMEM~ starting address of program (2000) >NEXT now enter all
the machine codes, one after the other followed by the key ‘NEXT’.
STEP 2-DECLARATION OF INPUTS:
Input values to the program should be declared as RESET REL EXMEM>input
(data) address->NEXT~ Now enter all the inputs values followed by the ‘NEXT’,
STEP 3-EXECUTION OF PROGRAM:
The program can be executed as
RESET GO Starting address of the program (2000)>FILL
STEP 4-VERIFICATION OF OUTPUT
Output of the executed program can be verified as
RESET> REL EXMEM~ output (data) address> NEXT
(& scanned with OKEN ScannerPROGRAM:
MEMORY | MACHINE | MNEMONICS | OPERANDS | COMMENTS
ADDRESS | CODE
72501H | Get address of first
2000 21,01,25 | LXI number in H-L pair,
sans = nie iM 18 number in accumags
aus ze MO it Increment content of
pair. —
a x ADD M ‘Add 1st and 2°4 numbers
ane 32,0325 | STA 25031 Store sum in 2503H,
2006 82 56H
Result:
25039FH
CONCLUSION:
(& scanned with OKEN Scanner
—