What is the difference between load and store




















Connect and share knowledge within a single location that is structured and easy to search. One of my homework questions was to find the 3rd element stored in an array in MIPS, here is my code. If anyone could please give a sound explanation of the what the correct answer is and how to figure out when to use SW or LW, would be very much appreciated. To copy from one register to another you would typically perform an operation which resulted in the data of one register being copied intact into the other register, such as:.

It just wastes instructions. Most assemblers have a collection of macros to make your life easier. You may well find that yours has support for a virtual MOVE instruction, as well as others. Some expand to just one instruction, but some expand to more than one, such as "li", which usually expands to something along the lines of:.

I guess the confusion comes from the fact that in MIPS assembly syntax normally the destination operand is the left most one. This is not the case in the sw instruction: In the sw istruction the left operand register is stored to the memory address based on the right operand register. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Both write and store can be output operations, but write focuses on the destination of that output whereas store focuses on the source of that transfer.

This construct applies to all four verbs, so it's not a difference. Another concept is that of "destruction". My first programming teacher drilled into me that " reads are non-destructive, and writes are destructive ".

He was referring to reading from and writing to program variables in memory. Reading from a variable leaves its value intact. Writing to a variable destroys its previous value. Read s and store s are typically non-destructive; the contents of the source are not modified. Load s and write s, to make sense, have to be destructive; the data transferred is expected to replace the prior contents at the destination.

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Difference between a read and load Ask Question. Asked 6 years, 4 months ago. Active 5 years, 10 months ago. Viewed 7k times. What is the major difference between read and load and write and store?

I know it is a very basic question, but somehow I'm not able to get it. What is the difference between a streams suspended load and its bed load? What and the difference between a rivers suspended load and it and bed load? What is difference between resistance and load resistance? What is the difference between suspended and bed load? What is the difference between shock load and gradually applied loads and suddenly applied Load? What is difference between cold load and hot load?

What is the difference between a top load and a front load washer? What is the difference between a river suspended load and it's bed load? What is the difference between a stream's suspended load and it's bed load? People also asked. View results. Study Guides. Trending Questions. What is the fourth element of the periodic table of elements? What is a song that everyone likes but won't admit it? The forces of attraction between two objects varies with what two factors? Still have questions?

Find more answers. Previously Viewed. Unanswered Questions. Do you have to place in all round to be eligible to compete on individual events? Get the Answers App.



0コメント

  • 1000 / 1000