Professional Documents
Culture Documents
Experiment 1
Experiment 1
PROGRAM:
Memory
Address Opcode Operand Hexcode Comments
Initialize Register B by
3000 MVI B,05 06 5
3001 05
OBSERVATION:
B C A D
Input: 05 04 Output: 07 07
Result:
Thus, the program for addition of two 8-bit numbers is executed.
Experiment 1
Write a program for addition of two 8 bit numbers taking input from memory and
display result also in memory.
Aim: To perform addition of two 8 bit numbers using 8085.
B) Addition using registers and storing result in registers.
ALGORITHM:
1) Move the data to a register pair HL.
2) Move the data to accumulator from memory.
3) Increment value stored in HL Pair
4) Add memory to accumulator
5) Store in accumulator.
6) Terminate the program.
PROGRAM:
Memory
Address Opcode Operand Hexcode Comments
Initialize Register Pair
3000 LXI H 3010 21 HL by 3010
3001 10
3002 30
3007 12
3008 30
OBSERVATION:
H L A H L M
Input: 30 10 Output: 05 30 11 03
Result:
Thus, the program for addition of two 8-bit numbers is executed where input is also from
memory and output is also to memory.
First Class
MICROPROCESSOR VS MICROCONTROLLER
ASSEMBLY LANGUAGE- The language in which instructions are given but specifically for a program
like 8085 microprocessor.
HIGH LEVEL LANGUAGE- The language which humans can understand directly. Eg- C/C++.
MEMORY OF 8085- 64Kb, It is internal memory.Depend on adress bus and not on data bus.2^16.