Quiz 8.2

DIRECTIONS: Read each question carefully. Then click on the dot next to the answer that most closely fits the question. Try to answer all questions on this quiz and when you are done, click on the grade me button at the bottom.


Coverage: Section 8.2

  1. What does the following RTL notation mean?
              A <- S
    
the value of A is copied into S
the value of S is copied into A
S and A are connected by a bus
A and S have the same value

  1. Which CSC-1 instruction is described by the following RTL statement?
              A <- A >> 1
    
ADD
INC
SHR
SHL

  1. Which CSC-1 instruction is described by the following RTL statement?
              if N=0 then PC <- x
    
JMP
JZ
JN
JP

  1. Which CSC-1 instruction is described by the following RTL statement?
              A <- A | m[x]
    
OR
AND
NOT
RET

  1. Which CSC-1 instruction is described by the following RTL statement?
              A <- x
    
LDS
STD
LOD
LDI

  1. Which CSC-1 instruction is described by the following RTL statement?
              PC <- S
    
CAL
RET
JMP
JP

  1. Which of the following RTL statements is an indirect load?
A <- m[x]
A <- m[S]

  1. What does the semicolon in the RTL for the CAL instruction mean? Here is the RTL:
              S <- PC; PC <- x
    
first copy PC into S, and then copy x into PC
first copy x into PC, and then copy PC into S
copy x into PC and PC into S at the same time
it is a mistake, shouldn't be

  1. Which of the following instructions has no RTL, or no non-empty RTL?
LDI
NOP
JMP
RET

  1. Which of the following operation symbols stands for logical AND?
&
|
~
*