How many bits are left for address part of the instruction

Assignment Help Theory of Computation
Reference no: EM131218615

Task

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.

a) How many bits are needed for the opcode?

b) How many bits are left for the address part of the instruction?

c) What is the maximum allowable size for memory?

d) What is the largest unsigned binary number that can be accommodated in one word of memory?

2. Consider the MARIE program below.

a) List the hexadecimal code for each instruction.
b) Draw the symbol table.
c) What is the value stored in the AC when the program terminates?

Hex
Addr Label Instruction
100 Start, Load A
101 Add B
102 Store Temp
103 Load C
104 Add D
105 Add Temp
106 Store F
107 Output
108 HALT
109 A, DEC 5
10A B, DEC 3
10B C, DEC 4
10C D, DEC 13
10D E, DEC 3
10E Temp, HEX 00FD
10F F, HEX 00FE

3. Write code to implement the expression

F = (A+B) /(C*D*E) on 2-, 1- and 0-address machines. [6 marks]

Online submission via Turnitin is required for this assignment.

Rationale

This assessment task covers topics on CPU operation and Instruction Set Architecture, and has been designed to ensure that you are engaging with the subject content on a regular basis. More specifically it seeks to assess your ability to:

be able to define and appropriately use computer systems terminologies;

be able to describe the essential elements of computer organisation and discuss how the elements function;

be able to describe the basic instruction set architecture of a simple computer;

be able to discuss the general trends in computing technologies including examples of leading edge developments.

Verified Expert

This assignment describes about the various network topology like bus, star and the mesh. their advantage and their disadvantage with the real time example. It also explain about the Distributed Hash Table and its implementation in the peer to peer network and the comparison between the OSI and TCP/IP model as well as the IPv4 and IPV6 addressing.

Reference no: EM131218615

Questions Cloud

What is the percentage point decrease in the unemployment ra : Suppose the unemployment rate in the United States goes from 6.4% in one year to 5.6% in the next.
What are the important facts that you need to emphasize : Create a list that contains all the criteria that you and your team members have identified together. Then, from the list, select a set of criteria that your team will use to determine the viability of solutions. Explain each solution in reasonabl..
Calculating the actuarially fair premium for example : How do I take into account these deductibles when calculating the actuarially fair premium for example? How is the setup?
What is the dramatic moment in the the fourth of july : What is the dramatic moment in the "The Fourth of July?" How does Lorde tell the story in a way that makes that moment especially effective? Explore this by analyzing the organization of Lorde's essay.
How many bits are left for address part of the instruction : How many bits are left for the address part of the instruction - What is the maximum allowable size for memory and what is the largest unsigned binary number that can be accommodated in one word of memory?
Allocation of resources is made using : Alvin Roth of Harvard won the 2012 Nobel Prize in Economics for designing systems that allocate resources in innovative ways. For example, he designed a system that matches donated kidneys to recipients waiting for such donations. This system take..
What are you thoughts on this presentation : What are you thoughts about companies collecting data about you? Do you feel this type of data collection is a beneficial or detrimental? Why? Do you feel you have a right to know what data companies are collecting about you? Does this concern you..
Diverse board of directors that includes representatives : How might a company benefit from having a diverse board of directors that includes representatives of several industries, countries, and cultures.
Interpret the direct demand function derived : 1. Consider the general demand function: Qd = 8,000-16P + 0.75M + 30PR; where Qd is quantity demanded, P is price, M is income, and PR is the price of a related good.

Reviews

len1218615

9/24/2016 6:09:50 AM

Marking criteria The following marking criteria will be used to mark this assignment: Questions Fail (<50%) Pass (50% - 64%) Credit (65% - 74%) Distinction (75% - 84%) High Distinction (>84%) Question 1 &2 Incorrect answer with no demonstration of understanding the topic. Student demonstrate the understanding, however the calculations are incorrect. Answers are correct, omission of few calculations. Answers are correct and clearly show the calculations Question 3 Answers are incorrect Total marks available = 5 marks · Subtract the marks are set in marking criteria for each incorrect or missing instruction value in the code assembly; Subtract 1 mark for each incorrect or missing symbol;

Write a Review

Theory of Computation Questions & Answers

  How does automated system enhance relevance of information

How does the automated system enhance the relevance of the information provided?

  Communication process using a particular computer device

The enhancement of communication process using a particular computer device or software application by the people.

  Construct a table for this weighted code

It is possible to have negative weights in a weighted code for the decimal digits, e.g.,8,4, -2, and -1 can be used. Construct a table for this weighted code. Ifd is a decimal digit in this code, how can the code for 9 -d be obtained?

  How to search for that data and has the ability to read

How to search for that data and has the ability to read, understand, and interpret it - how the proper and relevant information can be found.

  Show turing machine recognizes class of truing-recognizable

Computation is defined as usual except that the head never encounters an end to the tape as it moves leftward. Show that this type of Turing machine recognizes the class of Truing-recognizable languages.

  Create and dfa or lr items for grammar

Create and DFA or LR(0) items for this grammar. Is this grammar LR(0) parsing table? If not, explain LR(0) conflict. If so create LR(0) parsing table.

  Question based on deadlock problem

Students who want to enroll in Model Railroading II at the local university are required to obtain permission from the instructor and pay a laboratory fee.

  Prove the problem by contradiction

Let n > 1 be an integer. Prove by contradiction that if n is a perfect square, and then n + 3 cannot be a perfect square.

  Show that if the statement is true

Show that if the statement P(n) is true for infinitely many positive integers, and the implication P(n+1) ---> P(n) is true for all n>=1, then P(n) is true for all positive integers.

  Show the closure under difference for regular languages

Show the closure under difference for regular languages but the proof was non-constructive.

  1- when organization have a balance of both management and

1- when organization have a balance of both management and leadership and goals and challenges have been met how do we

  Redundant sequence identi cation

Redundant sequence identi cation

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd