0% found this document useful (0 votes)
17 views3 pages

Labsheet2

The document is a lab sheet for a Microcontroller Lab course focusing on the 8085 microprocessor instructions. It includes exercises for filling out instruction tables, entering codes into a simulator, and writing assembly language programs (ALP) for various tasks. The tasks involve operations like addition, multiplication, and working with memory addresses, with specific requirements for coding structure.

Uploaded by

am.en.u4eac22015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Labsheet2

The document is a lab sheet for a Microcontroller Lab course focusing on the 8085 microprocessor instructions. It includes exercises for filling out instruction tables, entering codes into a simulator, and writing assembly language programs (ALP) for various tasks. The tasks involve operations like addition, multiplication, and working with memory addresses, with specific requirements for coding structure.

Uploaded by

am.en.u4eac22015
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like