This document provides an assignment to write a program to evaluate the arithmetic statement X=A-B+C*(D*E-F) using different computer architectures: a) a general register computer with three address instructions, b) a general register computer with two address instructions, c) an accumulator type computer with one address instructions, and d) a stack organizer computer with zero-address operation instructions. The document was compiled by Yonas A. and Hailemariam M. in 2010.
This document provides an assignment to write a program to evaluate the arithmetic statement X=A-B+C*(D*E-F) using different computer architectures: a) a general register computer with three address instructions, b) a general register computer with two address instructions, c) an accumulator type computer with one address instructions, and d) a stack organizer computer with zero-address operation instructions. The document was compiled by Yonas A. and Hailemariam M. in 2010.
Write a program to evaluate the arithmetic statement:
X= A-B+C*(D*E-F) G+H*K
a)Using a general register computer with three address instructions
b)Using a general register computer with two address instructions c)Using an accumulator type computer with one address instructions d)Using a stack organizer computer with zero-address operation instructions. Examples
Compiled by Yonas A. and Hailemariam M.
2 [2010] Compiled by Yonas A. and Hailemariam M. 3 [2010] Compiled by Yonas A. and 4 Hailemariam M. [2010] Compiled by Yonas A. and5 Hailemariam M. [2010]