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

Lab 2

The document contains a series of assembly language instructions for the 8085 microprocessor, detailing various operations such as moving data between registers and memory, performing arithmetic operations, and controlling program flow with loops and halts. Each section is labeled with a question number, indicating different tasks or exercises. The instructions demonstrate fundamental programming concepts in assembly language, including data manipulation and control structures.

Uploaded by

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

Lab 2

The document contains a series of assembly language instructions for the 8085 microprocessor, detailing various operations such as moving data between registers and memory, performing arithmetic operations, and controlling program flow with loops and halts. Each section is labeled with a question number, indicating different tasks or exercises. The instructions demonstrate fundamental programming concepts in assembly language, including data manipulation and control structures.

Uploaded by

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

Lab 2

MVI B,57H

MOV A,B

STA 1075H

HLT

//Q6

//MVI C,FFH

//LXI H ,1070H

//LXI D,1070H

//MOV M,C

//LDAX D

//HLT

//Q8

//MVI B, 00H

//LXI H , 1075H

//MOV M,B

//INX H

//MOV M,B

//HLT

//Q9

//LXI H, 1090H

//SUB A

//MVI D, 0FH

//LOOP//: //MOV M,A

// INX H

// DCR D

// JNZ LOOP

//HLT

//Q11
//LXI B, 1090H

//SUB A

//MVI C, 0FH

//LOO////P//://// STAX B

//INX B

//DCR C

//JNZ LOOP

//HLT

//Q12

//LXI B, 0007H

//LOOP//: //DCX B

// JNZ LOOP

//Q13

//LXI B, 0007H

//LOOP//:// DCX B//

By Jubin`s 8085 simulator

//MOV A,B

//ORA C

//JNZ LOOP

//Q14

//LXI H, 0009H

//LOOP//: //MVI M, 00H//

// DCX H

// JNZ LOOP

//HLT

//Q15

//LXI H, 1055H

//LXI D, 1085H

//MVI C, 06H
//LOOP//:// LDAX H

// MOV M,A ; Store data at destination

// INX H ;

// DCX D ; Decrement destination pointer

//DCR C ; Decrement counter

// JNZ LOOP ; Repeat if counter ≠ 0

//HLT

//Q22

//LXI H, 1070H ; Set HL to memory address 1070H

//MVI B, 05H ; Load 05H into register B (counter)

//MVI A, 01H ; Load 01H into register A

//STORE//: //MOV M,A ; Store the value of A in memory pointed to by HL

//INR A ; Increment A by 1

//INX H ; Increment HL to point to the next memory location

// DCR B ; Decrement B

// JNZ STORE ; Repeat the loop until B = 0

//HLT ; Halt the program

//q23

//LXI H, 1055H

//MVI M, 8AH

//MVI A, 76H

//ADD M

//STA 1055H

//HLT

//q25

LXI H, 1065H

MVI M, FFH

INR M

HLT

You might also like