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

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

Hi there! this is Ayan. I am a part-time blogger, my blog is https://dreamtodeff.com/, on this site, I mostly focus on WWE, Tech news, and Programming

Add Comment

Click here to post a comment

Your email address will not be published. Required fields are marked *

FREE Newsletters Subscription

Get Interesting stuffs everyday in your mail, with a chance to win Rs. 10,000 every month by participating FREE Giveaway.