Data movement requires that data be moved from a source to a destination. What are the practical issues that a designer must be aware of when implementing a data move instruction?

What will be an ideal response?


One consideration is addressing modes. The question was not specifically aimed at that point. However, if a load is being performed from memory, addressing is a consideration. Generally, an address is register indirect and is given by r1 + r2 + C where r1 and r2 are registers and c is a constant. In general, most processors allow either (r1 + C) or ( r1 + r2), but not both a second register and a constant. Moreover, addressing modes can be pre? or post?indexed in the sense that the offset register or constant is added to the pointer register either before or after use.

The question was more about what happens to load and stores that are shorter than the target data. When loading into a register, if the value loaded is shorter than the register (e.g., 16 bits loaded into a 32 bit register)
then the bits in the register not loaded into can be set to zero, left unchanged, or sign?extended. This problem
does not arise when storing data in memory because the location is always the same size as the data being
stored.

Finally, there is the consideration of byte ordering. Some move instructions can change the byte order as the
data is stored.

Computer Science & Information Technology

You might also like to view...

A static method is one that can be used with a _____________.

(a) instance variable (b) local variable (c) global variable (d) the class name as a calling object

Computer Science & Information Technology

________ documents cannot be edited after being exported

A) PDF or XPS B) HTML or DOCX C) JPEG or PDF D) DOCX or XPS

Computer Science & Information Technology

What type of parameter can be given a default value?

A. value parameter B. reference parameter C. output parameter D. array parameter

Computer Science & Information Technology

When a table cell is formatted for _____________________ Contents, Word adjusts the cell width each time the cell contents change.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology