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
1. Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register? array1 DWORD 10, 20, 30, 40, 50, 6

segmentation and overlapping in assemble language

Write a program to evaluate the following expression. You are to evaluate the following equation: num1 - (input + num2) - (num3 + num4) Input will be a hex number input by

RET : Return from the Procedure:- At each CALL instruction, the register IP and register CS of the next instruction is pushed to stack, before the control is transferred to the


General Data Registers Given figure indicate the register organization of 8086. The registers DX, CX, BX and AX are the general purpose 16-bit registers. AX is behaved as 16-bi

errorlevel -302 ;prevents error code for this chipset __config 0x373A ;chip config PIC spec page 146 processor 16F877A ;chipset reset code


LIST p=18f4550 #include org 0x0000 movlw 0x00 _________ movlw 0xFF movwf PORTB end .

Tabular comparison for µ PS' Parameters Tables (a) and (b) list the characteristic of Intel microprocessor. Table(a):   Table(b): It has a 64 bit da