Lods-stos-string manipulating instruction-microprocessor, Assembly Language

LODS : Load String Byte or String Word:-

The LODS instruction loads AL/AX register by the content of a string pointed to by DS:SI register pair. The SI is automatically modified depending on the DF. If it is a byte transfer (LODSB), SI is modified by one and if it is a word transfer (LODSW), the SI is modified by two. No other flags are changed by this instruction.

STOS : Store String Byte or String Word:-

The STOS instruction stores the AL/AX register contents to a location in the string pointed by theES: Dl register pair. Accordingly the Dl is modified. No flags are changed by this instruction. The direction flag controls the string instruction execution. The source index (SI) and destination index (D1) are automatically modified after each iteration. If the DF = 1, then the execution follows auto decrement mode. In this mode, DI and Sl are decremented automatically after each iteration (by 1 or 2 depending on the word or byte operations). Hence, in auto decrementing mode, the strings are mention to by their ending addresses. If the DF = 0, then the execution follows autoincrement mode. In this mode, D1 and S1 are incremented automatically (by 1 or 2 depending on word or byte operation) after each iteration, so in this case, the strings are mention to by their starting addresses.

Posted Date: 10/12/2012 3:41:19 AM | Location : United States







Related Discussions:- Lods-stos-string manipulating instruction-microprocessor, Assignment Help, Ask Question on Lods-stos-string manipulating instruction-microprocessor, Get Answer, Expert's Help, Lods-stos-string manipulating instruction-microprocessor Discussions

Write discussion on Lods-stos-string manipulating instruction-microprocessor
Your posts are moderated
Related Questions
RISC Characteristics : The  concept  of  RISC  architecture  include  an  attempt  to  reduce  execution  time  by make  simple  the instruction set of the computer. The main c

Architecture Of 8088 The register set of 8088 is accurately the same as in to 8086. The architecture of 8088 is also same to 8086 except for 2 changes; a) 8088 has 4-byte instr

Write a program to merge two sorted arrays to create a third sorted array containing all values from the two original arrays. Merge is a key component to the mergesort algorithm.

Computes the integral square root: Problem: Square Root:   For this problem you will write a short assembly program that computes the integral square root of an input numb

what is double hashing

write a Mips program that read a string AND PRINT IT ON THE SCREEN

hi, i''m new to assembly language and my teacher told us to look for an example of the odd and even numbers program using debug.exe in ms dos as a guide since we just started. plea

You have to write a subroutine (assembly language code using NASM) for the following equation.

IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in th

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando