Question: 1. A digital computer has a memory unit with 48 bits per word. The instruction set consists of 240 different operations. All instructions have an
1. A digital computer has a memory unit with 48 bits per word. The instruction set consists of 240 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 to specify the register? c) How many bits are left for the address part of the instruction? d) What is the maximum allowable size for memory? e) What is the largest unsigned binary number that can be accommodated in one word of memory?
2. Write a MARIE program using a loop that multiplies two non-negative numbers by using repeated addition. For example, to multiply 3 x 6, the program would add 3 six times (e.g. 3 + 3 + 3 + 3 + 3 + 3) or add 6 three times (e.g. 6+6+6). You should write and run the program using MARIE simulator. Also write the code with Address, Instruction, and Comments.
3. Consider an instruction Add 1000. Memory contents, Accumulator (AC), and R1 Register contents are depicted in the below figure: (such as memory address 1000 contains a value 1400, memory address 1100 contains a value 400 etc. All the numbers used here are decimals). [6 marks] Assuming R1 is implied in the indexed addressing mode, determine the actual value loaded into the accumulator (AC) using the following addressing modes: i) Immediate ii) Direct iii) Indirect iv) Indexed.
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
The question seems complete and I will proceed to answer it step by step Question 1 a How many bits are needed for the opcode To determine the number of bits needed for the opcode we use the formula 2... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
60987d46b2a26_28904.pdf
180 KBs PDF File
60987d46b2a26_28904.docx
120 KBs Word File
