Section 8.2
Review Questions

RTL for the CSC-1

  1. Write the mnemonic for the CSC-1 machine instruction whose RTL is given.
          _____________   A <- A & m[x]
          
          _____________   m[x] <- A
          
          _____________   A <- m[x]
          
          _____________   A <- x
          
          _____________   m[S] <- A
          
          _____________   PC <- S
          
          _____________   A <- A + m[x]
          
          _____________   (nothing)
          
          _____________   A <- A | m[x]
          
          _____________   A <- ~m[x]
          
          _____________   S <- A
          
          _____________   A <- S
          
          _____________   if N=0 then PC <- x
          
          _____________   A <- A >> 1
          
          _____________   A <- A << 1
          
          _____________   PC <- x
          
          _____________   if Z=1 then PC <- x
          
          _____________   if C=1 then PC <- x
          
          _____________   A <- m[S]
          
          _____________   if V=1 then PC <- x
          
          _____________   if N=1 then PC <- x
          
          _____________   (stop the computer)
          
          _____________   A <- A - m[x]
  1. What does the semicolon mean in the RTL for the CAL instruction?
               S <- PC; PC <- x
  1. How many bits wide is each word of memory?
  1. How many bits wide are the various registers in the CSC-1?