Section 9.6
Review Questions

Arrays

  1. Which kinds of data structures found in high level languages make use of indirect addressing in machine language?
  1. Which CSC-1 register holds the address used during all indirect loads and stores?
  1. What is the name of the "indirect load" instruction in the CSC-1?
  1. What is the name of the "indirect store" instruction in the CSC-1?
  1. What two components are added together to come up with the actual address when accessing arrays?
  1. Which is simpler? Byte-addressability or word-addressability?
  1. What do we call the stuffing of several bytes into a single word?
  1. Why is byte-addresability used more often today?

The following questions relate to the CSC-1 assembler program found in Section 9.6. You might want to read and study that rather carefully before answering the following questions.
  1. Which of the following load instructions in the CSC-1 takes an operand? Only one of them does.
               LOD           LDS
  1. Suppose that the base address of the array is 1000. How would you get that into the accumulator?
  1. If the A2S instruction is used with the LDS instruction, would the S2A instruction be used with the STS instruction?
  1. Write a complete chunk of CSC-1 code (4 instructions long) that reads ARRAY[i] from memory and leaves it in the A register.