Write an 8085 program to store the content of accumulator in any ML - ChromeTechny
Home » Write an 8085 program to store the content of accumulator in any ML
8085

Write an 8085 program to store the content of accumulator in any ML

Up until now, we have seen programs in which we copy the content of the memory location in either the accumulator or in any GPR.

But this time we are going to do the opposite. In this 8085 program, we are going to store the content of accumulator in any ML.

So the first thing which we will need to do this store an 8-bit into the accumulator and then we will move that the content of accumulator in a memory location.

Input:

Let the 8-bit data be DBH, and the memory location be 2000H, which means we will begin our program execution from 2001H location.

Program:

MVI A, DBH

STA 2000H

HLT

 

Programming Details
Memory Location OPCODE Operand Label Hex Code
2001 MVI A, DBH 3EH
2002 DBH
2003 STA 2000H 32H
2004 00H
2005 20H
2006 HLT 76H

 

About the author

Ayan