Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. What is the difference in operation between a LOAD x and a LOADI x instruction?
- a. The LOAD loads the value at address x to the AC; the LOADI loads the value found in the location addressed by the value in x to the AC
- b. There is no difference if x is the same
- c. The LOAD loads the value at address x to the AC; the LOADI loads the value x to the AC
- d. LOAD loads the value x to the AC; LOADI loads the value found at x to the AC
- e. Don't know/No answer
- 2. Consider the next MARIE instructions: Load, Add, Store, Subt, Input and Output. Which of the following MARIE registers is not always used in the FDE cycle of the above instructions?
- a. MAR
- b. InREG
- c. PC
- d. AC
- 3. Which MARIE instruction is being carried out by the micro-operations that follow?
- MAR <- X
- MBR <- M[MAR]
- AC <- MBR
- a. Jump X
- b. Don't know/No answer
- c. Load X
- d. Add X
- e. Store X
- 4. Which MARIE instruction is being carried out by the micro-operations that follow?
- MAR <- X
- MBR <- M[MAR]
- AC <- AC + MBR
- a. Add X
- b. Load X
- c. Jump X
- d. Don't know/No answer
- e. Store X
- 5. Which of the following best describes the composition of a 32-bit register.
- a. 32 D flip-flops
- b. 32 SR flip-flips
- c. 16 D flip-flops and 16 SR flip-flops.
- d. Don't know/no answer
- e. 64 D flip-flops.
- f. 32 D flip-flops and 32 SR flip-flops
- 6. Which MARIE instruction is being carried out by the microoperations that follow?
- MAR <- X
- MBR <- AC
- M[MAR] <- MBR
- a. Load X
- b. Store X
- c. Jump X
- d. Add X
- e. Don't know/No answer
- 7. Which of the following pair of values usually make up an instruction in a simple instruction set?
- a. OpCode, Address
- b. Don't know/No answer
- c. Operation, Instruction Length
- d. Operation, FDE
- e. Operand, Address
- 8. Consider the following MARIE code. The code starts at address 000 in hexadecimal (ORG 000): that is the first instruction is saved at address 000.
- After the execution of this code what is the value (in decimal) stored in the OutREG register?
- ORG 000
- If, Load X
- Subt Y
- Skipcond 400
- Jump Else
- Then, Load X
- Add Z
- Output
- Jump Endif
- Else, Load X
- Subt Z
- Output
- Endif, Halt
- X, Dec 7
- Y, Dec 5
- Z, Dec 2
- END
- a. 3
- b. 1
- c. 5
- d. Don't know/No answer
- e. 7
- 9. Which MARIE instruction is being carried out by the micro-operations that follow?
- MAR <- X
- MBR <- M[MAR]
- AC <- AC - MBR
- a. Subt X
- b. Jump X
- c. Store X
- d. Load X
- e. Don't know/No answer
- 10. Which MARIE instruction is being carried out by the microoperation that follows?
- PC <- X
- a. Jump X
- b. Don't know/No answer
- c. Store X
- d. Add X
- e. Load X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement