Section 7.4
Review Questions
Register Transfer Language
-
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]
-
What symbol is used to indicate a left shift?
answer...
<<
-
What data structure of high level languages closely models the way that
main memory is addressed?
answer...
1-dimensional array
-
Write an RTL statement which uses the "identity" operation of the ALU.
Copy TMP's value into A.
answer...
A <- TMP
-
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