-->

Tuesday, February 8, 2022

Exchange the contents(8-bit data) of two memory locations | 8085 Microprocessor

 

§  Program :

;Exchange the memory location of the contents(8-bit data) 1000H to 2000H

 

 MVI A,30H

 STA 1000H

 MVI A,40H

 STA 2000H             ;These codes are used to store values in 1000H & 2000H

 

 LDA 1000H

 STA 0FF0H             ;This location is used to temporarily store the value of 1000H

 LDA 2000H

 STA 1000H

 LDA 0FF0H

 STA 2000H

 

 HLT

 


§  Output :

 






No comments:

Post a Comment

Contact Form

Name

Email *

Message *