19EAC 285: Microcontroller Lab
Lab sheet 2
Review of 8085 instructions
NAME- ROLL NO.
1. REVIEW OF 8085 INSTRUCTIONS
A. Fill out the table for the given description
Description Mnemon Operands No of bytes Addressing mode
ic
Load HL pair LHLD 3
directly from 2050H
2050H
Exchange HL XCHG 1
with DE
Transfer E MOV 1
content to A A,E
Subtract L from SUB L 1
A
Store the A at STA 3
2054H 2050H
Transfer H MOV 1
content to A A,H
Add D with A ADD D 1
Subtract L with SBB L 1
borrow
Complement CMA
content of E
Ms. Chinmayi R, Dr. K. L Nisha
19EAC 285: Microcontroller Lab
B. Enter the given codes in simulator and find its output & functionality.
PC (in Hex) Mnemonic Hex Register Contents after
code in execution (in Hex)
Memory
A B C D E H L
MVI B, 06
MOV A, B
MVI C, 07
ADD C
STA 8200
HLT
C. Enter the given codes in simulator and find its output & functionality.
PC (in Mnemonic Hex Register Contents after
Hex) code in execution (in Hex)
Memory
A B C D E H L
LDA 8050
MOV A, B
Ms. Chinmayi R, Dr. K. L Nisha
19EAC 285: Microcontroller Lab
LDA 8051
ADD B
STA 8052
MVI A, 00
ADC A
STA 8503
HLT
2. WRITE AN ALP FOR THE FOLLOWING AND SHOW RESULT
USING GNU SIMULATOR.
⮚ Add five numbers and store the result in the consecutive
locations in the memory starting from 8200h.
● Write code contiguously without any loop
● Modify the above code with a for loop using conditional
jump.
⮚ Multiply two consecutive memory bytes stored from 8000h and
store the product in 8080h using continuous addition.
⮚ Find the sum of all even numbers for a given array of size 16
with starting address of 6000h.
Signature of Faculty in charge:
Date:
Ms. Chinmayi R, Dr. K. L Nisha