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
Read Architecture : Look Aside Cache In "look aside" cache architecture the main memory is located conflictingthe system interface. Both the cache main memory sees a bus cycle

1) Write an 80x86 assembly language program in EXE file format to do the following tasks: a) Open and read the contents of a file into memory (use at least 1 kB). b) Sort the li

AAD stand for what??

8254 Programmable Timer A diagram of Intel's 8254 interval event/timer counter is given in Figure. The 8254 consists of 3 identical counting circuits, per of which has GATE and

How do i convert a asci number to numerals?

Type of Microprocessor : Microprocessors fall into 3 categories: Single Chip Microcomputers: - Contains RWM, ROM, microprocessor, I/O port, timer and clock. General pu

Description Write a MIPS program that reads a string from user input, reverse each word (defined as a sequence of English alphabetic letters or numeric digits without any punctu

DMA controller :     Steps include in transferring a block of data from I/O devices (for example a disk) to memory: 1. CPU sends a signal to initiate disk transfe

Logical Instruction : This type of instructions is utilized for carrying out the bit by bit shift, basic logical operations or rotate. All of the condition code flags are affe

Develop a suitable schematic circuit diagram of your system showing the interface between the PIC16F84 and the existing mains light & switch, including 5V derivation from the 240V