explain data movement ?, Basic Computer Science

In any program it is essential to move the data in the memory and in the CPU registers; there are a number of ways to do this: it can copy data in the memory to a number of register, from register to register, from a stack to a register, from a register to a stack, to transmit data to external devices in addition to vice versa.
This group of data is subject to rules and restrictions. The next are some of them:
*It is not potential to move data from a memory locality to another unswervingly; it is essential to first move the data of the origin locality to a register and then from the register to the destiny area.
*It is not possible to move a constant straight to a segment register; it first must be moved to a register in the CPU then to segment register.
It is feasible to move data blocks through the movs instructions, which copies a chain of bytes or words; movsb which copies n bytes from a region to another; and movsw copies n words from a locality to another. The last two instructions take the values from the distinct addresses by DS:SI as a set of data to move and ES:DI as the new localization of the
data.
To move data there are also structures identified batteries, where the data is introduced with the push instruction and are removed with the pop instruction.
In a stack the first data to be introduced is the last one we can take, this is, if in our program we utilize these instructions:
PUSH AX
PUSH BX
PUSH CX
To return the accurate values to each register at the moment of taking them from the stack it is essential to do it in the following sequence:
POP CX
POP BX
POP AX
For the contact with external devices the in command to read the information received from a port and the out command is used to send information to a port.
The out command’s syntax is:
OUT DX,AX
The in command’s syntax is:
IN AX,DX
Posted Date: 5/4/2012 4:19:52 AM | Location : United States







Related Discussions:- explain data movement ?, Assignment Help, Ask Question on explain data movement ?, Get Answer, Expert's Help, explain data movement ? Discussions

Write discussion on explain data movement ?
Your posts are moderated
Related Questions
1. In discussing software algorithms for mutual exclusion, we noted that optimizing compilers and out-of-order execution by processors could invalidate most of these algorithms bec

There are two kinds of FCB, the normal, whose length is 37 bytes and the expanded one of 44 bytes. The FCB is created of data given by the programmer and by data which it takes dir

COMMUNICATION CHANNELS: A wire pair connecting two telephones is the simplest circuit, allowing communication in both directions. Other channels include coaxial cables, optica

ASCII code:  An alphanumeric code has to represent 10 decimal digits, 26 alphabets and certain other symbols such as punctuation marks and special characters. Therefore, a min

Design a program that will read a file of sales records and produce a sales report. Each record in the file contains a customer’s ID, name, a sales amount, and a validated GST code

Development of UNIX: The original UNIX development was performed on a Digital PDP-7 minicomputer and later moved to a PDP-11 minicomputer, the forerunner of the VAX computer.

ython variables do not comprise to be explicitly declared to already reserve memory space. The declaration occurs automatically when you allocate a value to a variable. The equal s

QUESTION (a) Consider a system with input x[n] and output y[n] that satisfy the difference equation:                                   Y[n] = x[n] + 0.5 x[n-2] + 0.2 x[n+1]

Qestion 1 What is .Net Framework? Qestion 2 Write short notes on constructors and destructors Qestion 3 Explain boxing and unboxing with examples Qestion 4 What is

Question 1 Define the following terms                                   1) Analog Signals and Digital Signals 2) Composite signals Question 2 Define the following terms