Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

An assignment for chapter one

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]

You might also like