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

Assignment Help:

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.


Related Discussions:- Lods-stos-string manipulating instruction-microprocessor

Odd and even numbers, hi, i''m new to assembly language and my teacher told...

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

Program for game by using microcontroller 8051, I want to do a program as a...

I want to do a program as a game by using the Microcontroller 8051 with the assembly language, by using 4*4 keypad and its matrix display. I have to use the keypad for playing the

Debug-microprocessor, Using DEBUG DEBUG.COM is a DOS efficacy that faci...

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

Solotuon, using 8086 assembly language that interchange upper four bits to ...

using 8086 assembly language that interchange upper four bits to lower four bits. assume that data store in byte memory and it written back to same location. and assume the data as

Flowchart for the sequence of 8251-microprocessor, Flowchart for the sequen...

Flowchart for the sequence of 8251 Whether the control, mode or sync character register is selected depends on the accessing sequence.  A flowchart of the sequencing is given i

16f877 7seg display, do you have experts that know 4 digit 7_Seg dispaly

do you have experts that know 4 digit 7_Seg dispaly

Internal architecture of microprocessor, Internal Architecture of Microproc...

Internal Architecture of Microprocessor : The architecture of 8086 provides a number of improvements over 8085 architecture. It supports a, a set of 16-bit registers ,16-bit AL

Efficient assembly language program, (1) Write a program that will: (a) dis...

(1) Write a program that will: (a) display "Enter Your Name:" (b) convert the entered name to Capital letters (if small), If any other character is entered, the program wil

Assignment, Write an assembly program that adds the elements in the odd ind...

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?

Program to perform a conversion on characters in a text file, Write an asse...

Write an assembly language program to perform a rot13 1 conversion on characters in a text file.  The program should read charatcers from the input file, perform the rot13 convers

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