Section 7.4
Review Questions

Register Transfer Language

  1. Write the RTL for "Add the contents of the A register to memory location 1000 and put the result back into the A register."
answer...
A <- A + m[1000]
  1. What symbol is used to indicate a left shift?
answer...
<<
  1. What data structure of high level languages closely models the way that main memory is addressed?
answer...
1-dimensional array
  1. Write an RTL statement which uses the "identity" operation of the ALU. Copy TMP's value into A.
answer...
A <- TMP
  1. Which of the following RTL statements fits the meaning: "Copy the value of the accumulator into memory address 2148."
               A <- m[2148]
               
               m[2148] <- A
               
               A <- 2148
               
               2148 <- A
answer...
m[2148] <- A