Assignment 2: MARIE and ISA Value: 15% Due Date: 30-Sep-2018 Return Date: 18-Oct-2018 Length: Submission method options: Alternative submission method Task back to top Question 1: A digital computer...

1 answer below »

Assignment 2: MARIE and ISA


Value:15%Due Date:30-Sep-2018Return Date:18-Oct-2018Length:
Submission method options:Alternative submission method

Task



back to top


Question 1:


A digital computer has a memory unit with 16 bits per word. The instruction set consists of 122 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. [10 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 unsigned binary number that can be accommodated in one word of memory?






Question 2:

Consider an instructionAdd 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.) [8 marks]




Assuming R1 is implied in the indexed addressing mode, determine the actual value loaded into the accumulator (AC) using the following addressing modes:



  1. Immediate

  2. Direct

  3. Indirect

  4. Indexed






Question 3:


More registers appears to be a good thing, in terms of reducing the total number of memory accesses a program might require. Using the arithmetic expression S = (A+B)-(C+D), support this statement. [Hints: First, determine the number of memory accesses necessary using MARIE and the two registers for holding memory data values (AC and MBR). Then perform the same arithmetic computation for a processor that has more than three registers (for example, R1, R2, R3, R4) to hold memory data values.][6 marks]






Question 4:


Assemble the MARIE program below.[6 marks]






Hex Address Label Instruction


100 Start LOAD A


101 ADD B


102 STORE D


103 CLEAR


104 OUTPUT


105 ADDI D


106 STORE B


107 HALT


108 A, HEX 00FC


109 B, DEC 14


10A C, HEX 0108


10B D, HEX 0000






a) List the hexadecimal code for each instruction [2 marks]


b) Draw the symbol table [2 marks]


c) What is the value stored in the AC when the program terminates? [2 marks]


Rationale

Answered Same DaySep 27, 2020ACC100

Answer To: Assignment 2: MARIE and ISA Value: 15% Due Date: 30-Sep-2018 Return Date: 18-Oct-2018 Length:...

Amit answered on Sep 29 2020
124 Votes
Full Name :
    
    Student ID :
    
    Subject :
    
    Assignment No :
    
    Due Date :
    
    Lecturer’s Name :
    
Assignment 2: M
ARIE and ISA
Your Name:
Your Email:
College name, University name, Country name
Table of Contents
a)    Answer 1    3
b)    Answer 2    4
c)    Answer 3    5
d)    Answer 4    6
e)    References:    8
a) Answer 1
1)
The executed instructions are indicated by an opcode. As it is given
Executed instructions =
Binary conversion of =
From above, 7 bits are defining the operations of instructions. Thus, bits will be required to opcode.
2)
Assume that bits/word are used by memory and from calculation of part 1, bits are required for opcode, so,
Number of address bits = total bits/word – number of opcode bits

So, 9 bits are left for address part.
3)
From calculation of part 2, bits are left for address part and we know that

So,
Thus, maximum size for 16 bit requires .
4)
From calculations of part 3, Number of word in memory
So,
And unsigned number range is from .
So,
So; one word memory will accommodate as the largest unsigned binary number.
b) Answer 2
The used addressing modes are listed below:
1)
Immediate:
So,

2)
Direct:
So,

3)
Indirect :
So,

4)
Indexed:
So,

c) Answer 3
The given...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here