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

Assignment Help:

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


Related Discussions:- Program to move string from offset-assembly program

Dijkstra Implementation in Assembly Language x86, I am assigned to implemen...

I am assigned to implement dijkstra algorithm in assembly language. I am not a novice in assembly. I need help implementing it.Kindly if anyone then please.

Formulate the linear programming model , Print Media Advertising (PMA) has ...

Print Media Advertising (PMA) has been providing a contract to market Buzz Cola via newspaper ads in a main southern newspaper. Full-page ads in the weekday editions (Monday throug

Al registre, check the al-register for palindromic number

check the al-register for palindromic number

Program, Write an application that does the following: (1) fill an array wi...

Write an application that does the following: (1) fill an array with 50 random integers; (2) loop through the array, displaying each value, and count the number of negative values;

Aas-arithmetic instruction-microprocessor, AAS: ASCII Adjust AL After Subt...

AAS: ASCII Adjust AL After Subtraction AAS instruction correct the result in the AL register after subtracting operation of two unpacked ASCII operands. The result is in unpacked

Daa-arithmetic instruction-microprocessor, DAA: Decimal Adjust Accumulator...

DAA: Decimal Adjust Accumulator:- This instruction is utilized to convert the result of the addition operation of 2 packed BCD numbers to a valid BCD number. The conclusion has to

#largest number, #write a program 8086 to find the largest number

#write a program 8086 to find the largest number

Dma-how dma works-microprocessor, DMA DMA stands for Direct Memory ...

DMA DMA stands for Direct Memory Access It is uses same Address/Data lines on ISA bus It controls the ISA bus instead of the processor ("bus master") Floppy

Eax and ax register, MyLocation SDWORD 14 TheTest        SDWORD 8     mov ...

MyLocation SDWORD 14 TheTest        SDWORD 8     mov    eax,MyLocation     mov    ebx,TheTest     neg     eax,ebx     sub     eax,ebx Show exactly what lives in eax after executi

Instruction formats-microprocessor, Instruction Formats A machine langu...

Instruction Formats A machine language instruction format has 1 or more number of fields linked with it. The first field is known as operation code field or op code field, whic

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd