Program to move string from offset-assembly program, Assembly Language

Program : A program to move a string of the data words from offset 2000H to offset 3000H the length of the string is OFH.

Solution :

For writing this program, we will use an significant facility, available in the 8086 instruction set, for example move string byte/word instruction. We will also study the flexibility imparted by this instructions to the 8086 assembly language program. First  write  the Program for 8085, supposing that the string is available at location 2000H and is to be moved at 3000 H.

786_program4.jpg

Now consider DS is suitably set, write the sequence for 8086. At first by using the index registers, the program may be written as given.

1453_program5.jpg

BY Comparing the above listings for 8085 and 8086 we can conclude that every instruction in 8085 listing is replaced by an alike instruction of 8086. The above 8086 listing is completely correct but it is not competent.  Let us try to write the listings for the similar purpose by using the string instruction.  Due to the assembler directives and the syntax, one may sense that the program is lengthy, though it eliminates 4 instructions for a MOVSW instruction.

140_program6.jpg

Posted Date: 10/12/2012 8:02:46 AM | Location : United States







Related Discussions:- Program to move string from offset-assembly program, Assignment Help, Ask Question on Program to move string from offset-assembly program, Get Answer, Expert's Help, Program to move string from offset-assembly program Discussions

Write discussion on Program to move string from offset-assembly program
Your posts are moderated
Related Questions
ALP to preform of two 16-bit numbers in register addressing mode

END : END of Program:- The END directive marks the ending of the assembly language program. When the assembler comes across this END directive, it avoided the source lines avai

ROL : Rotate Left without Carry: This instruction rotates the content of the destination operand to the left by the specified count bit-wise excluding the carry. The most signific

how o create the flow chart for scan ROW4, Column 1 and 3.tq

check the al-register for palindromic number

Write a program to solve problem 9, Summation Program, on page 179 of chapter 5 in the textbook (book:kip Irvine Assembly Language sixth edition)

For an 8088 the 2 addresses linked with an 8259A are normally consecutive, and the AO line is associated to the AO pin, but because there are just 8 data pins on the 8259A and the

A good starting point for your program is the toupper.asm program shown in class. It already queries the user for input and sets up a loop that looks at each character of the input

ADD:  Add :- This instruction adds an immediate contents of a memory location specified in the a register ( source ) or instruction to the contents of another register (destinat

Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog