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
Write an assembly language program that will: accept keyboard input of a positive integer value N; compute the sum S= 1+ 2 + 3 + ... + N; print (output) the computed su

Memory Interface                                                                  Figure: Memory Modulation design The memory of a computer contain of number of memo

Zero flag: The next line compares the value in register. A with the value 1. If they are equivalent, the Zero flag is set (to 1). The next line then jumps to start: only if th

from pin description it seems that 8086 has 16 address/data lines i.e.AD0_AD15.The physical address is however is larger than 2^16.How this condition can be handled

Using DEBUG DEBUG.COM is a DOS efficacy that facilitates the trouble-shooting and debugging of assembly language programs. In particular case of personal computers, all of th

CANI GET HELP WRITTING THIS CODE

Program is written but has errors returning values from the procedure.

MOVSW/MOVSB : Move String Word or String Byte: Imagine a string of bytes, stored in a set  of consecutive memory locations is to be moved to another set of  the destination locati

Perform an extensive web search of popular microcontroller manufacturers (some of the major players) to select a suitable device for the system to control the lighting of a typical

Any small project which can implement on any software. No need any external hardware approach.