|
Having seen in detail how the LDS and STS instructions implement indirect address, let us now briefly look at how these instructions can implement a high level language data structure, such as an array. Imagine there is an array of 10 integers, called stuff. It is placed as location 1000 in memory when the program starts. Later the following C statement is executed: stuff[i] = j; where i and j are int variables. |