New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Block transfer in reverse order in assembly 8085


Posted Date:     Total Responses: 0    Posted By: gajanan   Member Level: Bronze   Points/Cash: 2   


Following is the program code with description
MVI B,0AH
LXIH 2009H
LXID 2050H
Up MOV A,M
STAX D
INX D
DCX H
DCR B
JNZ Up
RST 1

Here we have two blocks with 10 contents each.First block from 2000 to 2009 which is to be reversed,for that we have taken another block with 2050 to 2059.
Here we will see the reverse order block and above code is typed on different block suppose 6000

In first step we have intialize the counter B with 10 numbers.In second we have intialize the HL pair with 2009 i.e memory location.similarly block 2050 is intialize with DL pair.In this step we have given a label Up to work in loop.Now the contents of memory location are transferred to accumulator and that contents of accumulator are transferred to the DL pair with the help of instruction STAX D.In next step we have incremented the DL pair while HL pair is decremented and also the counter is decremented by one.In ninth step JNZ Up instruction is used to check whether the zero flag is set or reset i.e. to check whether the counter is zero or not.If not then the pointer will move again to the top label Up this repeat until the condition is true.Last halt

Execute the program.



Project Feedbacks


No feedbacks found. Be the first to respond and make money from revenue sharing program.

Post Feedback
You must Sign In to post a feedback.
Next Project: CONSTRUCTION OF AN AUTOMATIC NIGHT LAMP
Previous Project: RFID Read and Write

Return to Project Index

Post New Project


Related Projects



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.