String manipulation instruction-microprocessor, Assembly Language

String Manipulation Instruction

A series of words or data bytes are available in memory at consecutive locations, to be mention to individually or collectively, are known as byte strings or word strings or byte strings. For instance, a string of characters can be located in consecutive memory locations, where each character can be represented by its ASCII equivalent. For mention to a string, two parameters are needed,

(a) Length of the string and

(b) Starting or ending address of the string.

The length of a string is generally stored as count in the CX register. In case of 8085, same structures may be set up by counter and the pointer arrangements.  The counters and pointers can be modified at each iteration until the needed condition for proceeding further is satisfied. Instead, the 8086 supports a set of more powerful instructions for string manipulations.  In case of 8086 string instructions, the decrementing or incrementing of the pointer depends on the direction flag (DF) status. If it is a byte string operation then the index registers are updated by one. Instead, if it is a word string operation then the index registers are updated by two. The counter in both of the cases is decremented by one. It consisits of REP, MOVSW/MOVSB, CMPS, SCAS, LODS, STOS.

 

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







Related Discussions:- String manipulation instruction-microprocessor, Assignment Help, Ask Question on String manipulation instruction-microprocessor, Get Answer, Expert's Help, String manipulation instruction-microprocessor Discussions

Write discussion on String manipulation instruction-microprocessor
Your posts are moderated
Related Questions
Write an assembly language program to find the maximum of: y = x 6 - 14x 2 + 56x for the range -2 ≤ x ≤ 4, by stepping one by one through the range. The program should in

assempbly language routine that takes an array named A containing n bytes of postive numebrs and fills two arranys, array B containing n words and array C containing n long words

Control Transfer or Branching Instruction Control transfer instructions transfer the flow of execution of the program to a new address specified in the instruction indirectly o

a program that display English letters excluding vowels

Intel 8259 interrupt controller :  The 8088 processor has only two interrupt control inputs, and interrupt request (INTR) and non mask able interrupt (NMI). NMI are interrupts t

String Manipulation Instruction A series of words or data bytes are available in memory at consecutive locations, to be mention to individually or collectively, are known as by

Program : Write an assembly program to find out the number of positive numbers and negative numbers from a given series of signed numbers. Solution : Take the i th num


Write an account of your findings and produce a report containing all aspects of the above. Include a step-by-step 'simple User Guide' so that your program can be operated as inten

I have two homework assignments due in 10 hours for the x86 processor assembly language