Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Assignment 2: MARIE and ISA Question 1: A digital computer has a memory unit with 24 bits per word. The instruction set consists of 199 different operations. All instructions have an operation code...

1 answer below »

Assignment 2: MARIE and ISA

Question 1:

A digital computer has a memory unit with 24 bits per word. The instruction set consists of 199 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.[8 marks]

  1. How many bits are needed for the opcode?
  2. How many bits are left for the address part of the instruction?
  3. What is the maximum allowable size for memory?
  4. What is the largest signed binary number that can be accommodated in one word of memory?

Question 2:

Suppose you have the instruction “Add 900”. Given the memory as follows, the contents of AC and the base register are 200 and 100 respectively.[6 marks]

Memory address value
XXXXXXXXXX
XXXXXXXXXX
XXXXXXXXXX
XXXXXXXXXX
XXXXXXXXXX
XXXXXXXXXX

What would be loaded into the AC, if the addressing mode for the operand is:

  1. Immediate
  2. Direct
  3. Indirect
  4. Indexed

Question 3:

Write code to implement the expression: F = (A-B)*(C*D+E) on 0-address, 1-address and 2-address machines. In accordance with programming language practice, computing the expression should not change the values of its operands.[8 marks]

Question 4:

In a computer instruction format, the instruction length is 10 bits and the size of an address field is 3 bits. The system architect has already designed FIFTEEN 2-address instructions and SEVEN 1-address instructions. How many 0-address instruction still possible to accommodate for the instruction set architecture? [8 marks]

This assessment task will assess the following learning outcome/s:

  • be able to investigate the internal operation of the Central Processing Unit (CPU) and describe how it is used to execute instructions.
  • be able to investigate and describe in detail the essential elements of computer organisation including internal bus, memory, Input/Output ( I/O) organisations and interfacing standards and discuss how these elements function.

Answered Same Day Jan 23, 2021

Solution

Amit answered on Jan 24 2021
148 Votes
Title of the assignment:
Student’s name:
Professor’s name:
Course title:
Date:
Table of Contents
1.    Answer 1    3
2.    Answer 2    4
3.    Answer 3    5
4.    Answer 4    6
1. Answer 1
1)
Given that

So,

Thus, bit requirement for opcode is: 8.
2)
As,

3)

4)
2. Answer 2
1) Immediate mode:

2) Direct mode:

3) Indirect mode:

4) Indexed mode:
3. Answer 3
1) 0-Address machine code:
PUSH A
PUSH B
SUB
PUSH C
PUSH D
MUL
PUSH...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here