Answered step by step
Verified Expert Solution
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
- 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 operation instructions.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started