0% found this document useful (0 votes)
2 views

2022ITB089_Ass01_Microprocessor_Lab (1)

The document contains a series of assembly language programming assignments for a microprocessor system. It includes tasks such as arithmetic operations, memory manipulation, and generating arithmetic and geometric progressions, along with their corresponding assembly code and expected output. Each assignment specifies the required equipment, instructions, and the results of executing the programs.

Uploaded by

Jeet Choudhary
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)
2 views

2022ITB089_Ass01_Microprocessor_Lab (1)

The document contains a series of assembly language programming assignments for a microprocessor system. It includes tasks such as arithmetic operations, memory manipulation, and generating arithmetic and geometric progressions, along with their corresponding assembly code and expected output. Each assignment specifies the required equipment, instructions, and the results of executing the programs.

Uploaded by

Jeet Choudhary
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/ 5

IIEST , Shibpur

Name: Jeet Choudhary Roll No: 2022ITB089 5Th Semester(HY) Date: 26/08/2024

Assignment 01
Equipment Required:

Single board 8085 microprocessor based

microcomputer system Fixed DC power supply with

four terminals:

+5V,1A Com +12V,0.1A -12V,0.1A


Assignments:

1. Write the assembly language program to place 7A H in register D and 6BH in


register C. Add the above two numbers. Transfer the result of addition to
register H. Subtract 03H from the result. Store the final result to register E.
Examine each register content after executing the program.

Assembly Code:

Address Opcode Instruction


8000H 16 H MVI D,7AH

8001H 7A H

8002H 0E H MVI C,68H

8003H 68H

8004H 7A H MOV A,D

8005H 81H ADD C

8006H 67H MOV H,A

8007H D6H SUI 03H

8008H 03H

8009H 5FH MOV E,A

800AH DFH RST 3

Output:

Register Value

C 68H

D 7AH

E E2H

H E5H
2. Fill 20 bytes of memory starting from F250H with an natural numbers in
increasing order.(i.e 00 HinF250H, 01H in F251H and so on).
Assembly Code:

Address Opcode Instruction

8000 11 LXI D,F250H


8001 50
8002 F2
8003 3E MVI A,00H
8004 00
8005 0E MVI C,14H
8006 14
8007 12 STAX D
8008 13 INX D
8009 3C INR A
800A 0D DCR C
800B C2 JNZ 8607H
800C 07
800D 86
800E DF RST 3

Output:

Address Value
F250 H 00 H
F251 H 01 H
F252 H 02 H
F253 H 03 H
F254 H 04 H
F255 H 05 H
F256 H 06 H
F257 H 07 H
F258 H 08 H
F259 H 09 H
F25A H 0A H
F25BH 0B H
F25CH 0C H
F25DH 0D H
F25EH 0E H
F25F H 0F H
F260 H 10 H
F261 H 11 H
F262 H 12 H
F263 H 13 H
3. Write an assembly language program to generate an AP series of 8terms
with common difference 2 and store the series in the memory location
starting from FA00H.
Assembly Code:

Address Opcode Instruction

8000 11 LXI D,FA50


8001 50
8002 FA
8003 3E MVI A,00H
8004 00
8005 0E MVI C,08H
8006 08
8007 C6 ADI 02 H
8008 02
8009 12 STAX D
800A 13 INX D
800B 0D DCR C
800C C2 JNZ 8607
800D 07
800E 86
800F DF RST 3

Output:

Address Value

FA50 H 02 H
FA51 H 04 H
FA52 H 06 H
FA53 H 08 H
FA54 H 0A H
FA55 H 0C H
FA56 H 0E H
FA57 H 10 H
4. Write an assembly language program to generate a GP series of 8 terms with
common factor 2 and store the series in the memory location starting from
FB00H.
Assembly Code:

Address Opcode Instruction

8600 11 LXI
8601 50
8602 FA

8603 3E MVI A,01H


8604 01
8605 0E MVI C,08H
8606 08
8607 12 STAX D
8608 13 INX D
8609 07 RLC
860A 0D DCR C
860B C2 JNZ 8607
860C 07
860D 86
860E DF RST 3

Output:

Address Value

FB00 H 01 H
FB01 H 02 H
FB02 H 04 H
FB03 H 08 H
FB04 H 10 H
FB05 H 20 H
FB06 H 40 H
FB07 H 80 H
5. Store 5 Data bytes 42H, ACH, B8H, 2FH and 10H in memory locations
starting from F230H to F234H. Transfer the entire block of data to new
memory locations starting from F040, in reverse order.
Assembly Code:

Address Opcode Instruction

8600 11 LXI D,F040H


8601 40
8602 F0

8603 21 LXI H,F034H


8604 34
8605 F0
8606 0E MVI C,05H
8607 05
8608 7E MOV A,M
8609 12 STAX D
860A 13 INX D
860B 2B DCX H
860C 0D DCR C
860D C2 JNZ 8607
860E 07
860F 86
8610 DF RST 3

Output:

Source Value Destination Value


Address Address
F230 H 42 H F040 H 10 H

F231 H AC H F041 H 2F H

F232 H B8 H F042 H B8 H

F233 H 2F H F043 H AC H

F234 H 10 H F044 H 42 H

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy