### How many bits are needed for the opcode

Assignment Help Computer Engineering
##### Reference no: EM131212171

Assignment - MARIE & ISA

Q1. 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?

Q2. 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

102                         Store 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

Q3. Write code to implement the expression

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

#### Show searching is carried out in the sequence

display that if quadratic searching is carried out in the sequence (h(x) + q^2), (h(x) + (q-1)^2), ..., (h(x) + 1), h(x), (h(x) - 1), ..., (h(x) - q^2) with q = (b-1)/2, the

#### Why is information security a management problem

Why is information security a management problem? What can management do that technology cannot? Why is data the most important asset an organization possesses? What other ass

#### Count the number of coins in the bag and record the value

Count the number of coins in the bag and record the value as P in Table II. (Note: an example of how Table II is supposed to look like has been provided to you at the botto

#### Create pivot tables and pivot charts to analyze sales

In this project you will create pivot tables and pivot charts to analyze sales, customer and product data. Cleanse the data- Open Pivot Analysis Raw Data and save it as Pivot

#### Initialize the loop control variable before the program

In boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I want to change the value of the loop control variable in the body of l

#### Write a paper about importance of database driven websites

Write a Paper about Importance of database driven websites and its risks. Technologies that support websites, pros and cons. Technologies that support databases, pros and cons

#### You are sitting at the desk at work

You are sitting at the desk at work, using your laptop computer. The boss calls an emergency meeting for you and several coworkers, and asks everyone to bring his or her lap

#### What is an accumulator

There are some instructions where the ALU and register_AC together will act as an accumulator. What is an accumulator. There are some instructions that do not require an outpu

### Reviews

#### len1212171

9/19/2016 5:15:54 AM

This assessment task covers topics on CPU operation and Instruction Set Architecture, and has been designed to make sure that you are engaging with the subject content on a regular basis. More specifically it seeks to assess your ability to define and appropriately use computer systems terminologies; describe the essential elements of computer organisation and discuss how the elements function; describe the basic instruction set architecture of a simple computer; discuss the general trends in computing technologies including examples of leading edge developments.