Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to evaluate the arithmetic statement: Using a general register computer with one address instructions. Using a general register computer with zero address

  1. Write a program to evaluate the arithmetic statement:

  1. Using a general register computer with one address instructions.
  2. Using a general register computer with zero address operation instructions.

  1. In the problem, assume that A, B, C, D, E reside in memory. Also assume that opcodes are 8 bits, memory addresses are 64 bits, and register addresses are 6 bits. Translate the following sequence of statements into assembly code for 0-address, 1-address, 2-address, 3-address architectures:

C = A + B;

D = A E;

Some architectures destroy a source/destination operand during computation. You may have to add some extra instructions due to the destruction of an operand. In each case, give a count of such extra instructions needed and mark them. Also find the total size of code in bytes in each case.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago