explain data movement ?, Basic Computer Science

Assignment Help:
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

Related Discussions:- explain data movement ?

Write a brief note on firewalls, Question 1 Explain the TCP/IP protocol la...

Question 1 Explain the TCP/IP protocol layers Question 2 Write a note Fiber Distributed Data Interface (FDDI) Question 3 Discuss on File Transfer Protocol (FTP)

Sequential reading in fcb files, Earlier than anything we must describe the...

Earlier than anything we must describe the file transfer area or DTA. With the intention of sequentially read we use the 14H function of the 21Hinterruption.The register to be read

What is Semaphore and explain with example?, Description A semaphore is a...

Description A semaphore is a confined variable whose value can be accessed and changed only by the operations P and V and initialization operation known as ''Semaphoiinitislize''.

Explain CPU scheduling and its objectives?, Definition of CPU scheduling: T...

Definition of CPU scheduling: The assignment of physical processors to processes allows processors to complete work. The process of determining that for which process which pro

Cryptography, For which X,Y in {o, O, Theta, Omega, omega}, do the relation...

For which X,Y in {o, O, Theta, Omega, omega}, do the relationships t(n)+t''(n) = X(min(t(n),t''(n))) and t(n)+t''(n) = Y(max(t(n),t''(n))) hold for all t,t'' such that t(n),t''(n)

Describe the binary search algorithm, QUESTION 1 Describe the binary se...

QUESTION 1 Describe the binary search algorithm using an example of your own. QUESTION 2 (a) By showing all your workings, give a big-O estimate for f(x) = (x + 1)lo

Java, what is meant by deliverable in strus base applications

what is meant by deliverable in strus base applications

Basic syntax of python language, The Python language has a lot of similarit...

The Python language has a lot of similarities to Perl, C and Java. Though, there are some specific differences between the languages. First Python Program: relative Mode Programmin

What help with this Assembly language Subroutine, Write an ARM subroutine w...

Write an ARM subroutine which will extract a substring from a string. You will need to use the library routine malloc to allocate memory for the new string. The subroutine signatu

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