Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. 1. What is the difference in operation between a LOAD x and a LOADI x instruction?
  2. 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
  3. b. There is no difference if x is the same
  4. c. The LOAD loads the value at address x to the AC; the LOADI loads the value x to the AC
  5. d. LOAD loads the value x to the AC; LOADI loads the value found at x to the AC
  6. e. Don't know/No answer
  7.  
  8. 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?
  9. a. MAR
  10. b. InREG
  11. c. PC
  12. d. AC
  13.  
  14. 3. Which MARIE instruction is being carried out by the micro-operations that follow?
  15. MAR <- X
  16. MBR <- M[MAR]
  17. AC <- MBR
  18. a. Jump X
  19. b. Don't know/No answer
  20. c. Load X
  21. d. Add X
  22. e. Store X
  23.  
  24. 4. Which MARIE instruction is being carried out by the micro-operations that follow?
  25. MAR <- X
  26. MBR <- M[MAR]
  27. AC <- AC + MBR
  28. a. Add X
  29. b. Load X
  30. c. Jump X
  31. d. Don't know/No answer
  32. e. Store X
  33.  
  34. 5. Which of the following best describes the composition of a 32-bit register.
  35. a. 32 D flip-flops
  36. b. 32 SR flip-flips
  37. c. 16 D flip-flops and 16 SR flip-flops.
  38. d. Don't know/no answer
  39. e. 64 D flip-flops.
  40. f. 32 D flip-flops and 32 SR flip-flops
  41.  
  42. 6. Which MARIE instruction is being carried out by the microoperations that follow?
  43. MAR <- X
  44. MBR <- AC
  45. M[MAR] <- MBR
  46. a. Load X
  47. b. Store X
  48. c. Jump X
  49. d. Add X
  50. e. Don't know/No answer
  51.  
  52. 7. Which of the following pair of values usually make up an instruction in a simple instruction set?
  53. a. OpCode, Address
  54. b. Don't know/No answer
  55. c. Operation, Instruction Length
  56. d. Operation, FDE
  57. e. Operand, Address
  58.  
  59. 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.
  60. After the execution of this code what is the value (in decimal) stored in the OutREG register?
  61. ORG 000
  62. If, Load X
  63. Subt Y
  64. Skipcond 400
  65. Jump Else
  66. Then, Load X
  67. Add Z
  68. Output
  69. Jump Endif
  70. Else, Load X
  71. Subt Z
  72. Output
  73. Endif, Halt
  74. X, Dec 7
  75. Y, Dec 5
  76. Z, Dec 2
  77. END
  78. a. 3
  79. b. 1
  80. c. 5
  81. d. Don't know/No answer
  82. e. 7
  83.  
  84. 9. Which MARIE instruction is being carried out by the micro-operations that follow?
  85. MAR <- X
  86. MBR <- M[MAR]
  87. AC <- AC - MBR
  88. a. Subt X
  89. b. Jump X
  90. c. Store X
  91. d. Load X
  92. e. Don't know/No answer
  93.  
  94. 10. Which MARIE instruction is being carried out by the microoperation that follows?
  95. PC <- X
  96. a. Jump X
  97. b. Don't know/No answer
  98. c. Store X
  99. d. Add X
  100. e. Load X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement