Write a program to evaluate the arithmetic expression [X=(A+B-C) times(D-E)] Make effective use of the registers to
Question:
Write a program to evaluate the arithmetic expression
\[X=(A+B-C) \times(D-E)\]
Make effective use of the registers to minimize the number of MOVE or LD instructions where possible.
(a) Assume a register-to-register architecture with three-address instructions. The operand order for subtraction, SUB, is difference, minuend, subtrahend.
(b) Assume a memory-to-memory architecture with two-address instructions.
(c) Assume a single-accumulator computer with one-address instructions.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Logic And Computer Design Fundamentals
ISBN: 9781292024684
4th International Edition
Authors: M. Morris Mano, Charles Kime
Question Posted: