Section 8.5
Review Questions
How Indirect Addressing Works
Which types of data would use LOD and STD instructions? Circle all that apply.
scalar array struct object
Which types of data would use LDS and STS instructions? Circle all that apply.
scalar array struct object
Which register holds the address of the data as the LDS or STS instruction is executing?
Which register must be used for address arithmetic?
Look at the following picture and then execute the 3 machine instructions beginning at 500. Show the values in the registers at the end.
Look at the following picture and then execute the 3 machine instructions beginning at 500. Show the values in the registers at the end.
Suppose you are working on a computer that does not have LDS and STS so it must actually rewrite instructions like "LOD 2500" in order to access successive elements of an array. What do we call such programs? And are they used nowadays?
Why are arrays dangerous in most computers?