Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a. A digital computer has a memory unit with 30 bits per word. The instruction s

ID: 3759756 • Letter: A

Question

a. A digital computer has a memory unit with 30 bits per word. The instruction set consists of 200 different operations. All instructions have an operation code part (opcode), and an address part (allowing for only one address). Each instruction is stored in one word of memory. a) How many bits are needed for the opcode? b) How many bits are needed for the address part of the instruction? a) What is the maximum allowable size for memory? b. Write the following MARIE assembly language equivalent of the following machine language instructions

Explanation / Answer

a)
2^8 = 256 which is larger than 150, we take the next lower which is 2^7 = 128 bits.
Therefore the operation code needs 8bits
b)
24-8=16. There are 16 bits available for the address part of the instruction

c)
2^16 = 65536. Max number is XXXX = 65535.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote