Tuesday, 28 November 2017

8085 Program to Exchange contents of memory locations 8085 Microprocessor

Program to Exchange contents of memory locations 8085 Microprocessor

Statement: Exchange the contents of memory locations 2000H and 4000H

Program 1:

 LDA 2000H : Get the contents of memory location 2000H into accumulator
 MOV B, A    : Save the contents into B register
 LDA 4000H : Get the contents of memory location 4000Hinto accumulator
 STA 2000H : Store the contents of accumulator at address 2000H
 MOV A, B    : Get the saved contents back into A register
 STA 4000H : Store the contents of accumulator at address 4000H

Program 2:
LXI H 2000H          : Initialize HL register pair as a pointer to memory location 2000H.
LXI D 4000H         : Initialize DE register pair as a pointer to memory location 4000H.
MOV B, M     : Get the contents of memory location 2000H into B register.
LDAX D        : Get the contents of memory location 4000H into A register.
MOV M, A     : Store the contents of A register into memory location 2000H.
MOV A, B     : Copy the contents of B register into accumulator.
STAX D        : Store the contents of A register into memory location 4000H.
HLT              : Terminate program execution.

In Program 1, direct addressing instructions are used, whereas in Program 2, indirect addressing instructions are used.

4 comments:

Bigg Boss said...

about indian achievement

bsp party

indian gossip

achievements of india

modi jokes

gossip india

names of public sector banks india

htop said...

thanks for sharing this information
best python training in chennai
best python training in sholinganallur
best python training institute in omr
python training in omr
best java training in chennai
 devops training in chennai
best devops training in chennai

Rajesh said...

thanks for sharing this message useful to us
ws training in Bangalore
Amazon web services training in Bangalore
best AWS Training institute in Bangalore
Aws training institutes in Bangalore
Aws certification course in Bangalore
DevOps training in Bangalore
Devops training institutes in Bangalore
develops certification course in Bangalore

Noah Roland said...

Hello everyone! my name is Noah, I'm writing this article to appreciate the good work of DR AKHIGBE that helped me recently to bring back my wife that left me for another man for the past 6 months. After seeing a comment of a woman on the internet testifying of how she was helped by DR AKHIGBE I also decided to contact him for help because all i wanted was for me to get my wife, happiness and to make sure that my child grows up with his mother 'I love my wife' Am happy today that he helped me and i can proudly say that my wife is now with me again and she is now in love with me like never before. Are you in need of any help in your relationship like getting back your man, wife, boyfriend, girlfriend or love and family relationship, I want to marry. Viewers reading my post that need the help of DR AKHIGBE should contact him via Email: drrealakhigbe@gmail.com You  can also call or contact him via whatsapp +2349010754824.
He also treat diseases like HIV, HERPES, CANCER, ALS, CHRONIC DISEASE, HEART DISEASE, LUPUS, ASTHMA,  DIABETES, MAR-BURG VIRUS,  HEPATITIS A AND B.ECZEMA, BACK PAIN, EXTERNAL INFECTION ,ASTHMA, MALARIA, DENGUE FEVER, BACTERIA DIARRHEA, RABIES, OBESITY, INSOMNIA, PROGENITOR,  MENINGITIS, ARTHRITIS, EPILEPSY,STROKE, LYMPHEDEMA, GALLSTONE, DICK AND BREAST ENLARGEMENT, PULMONARY HYPERTENSION, PENIS  EJACULATION, ,   HPV, DICK ENLARGEMENT, IMPOTENCE, DENGUE, CORNELIA DISEASE, OSTEOPOROSIS, RHEUMATISM, THYROID, COLD & FLU,KIDNEY DISEASE,ACME. PROTOPLASMIC  ERYSIPELAS. etc Contact this great herbal Doctor today the father of herbal root cure. via Email: drrealakhigbe@gmail.com or whatsApp him  +2349010754824   and get cured permanently He is real..website:      https:drrealakhigbe.weebly.com

Post a Comment

 
;