in CO and Architecture
742 views
2 votes
2 votes
The size of instruction in a single accumulator CPU organization is $16$ bits. In order to evaluate the expressions given below. How much memory space (bytes) is required for storing the program? evaluate the expression from left to right).

Expression : $y=\frac{A-B+C}{E+F}$
in CO and Architecture
by
742 views

1 Answer

3 votes
3 votes
Best answer

accumulator CPU organization:   in this organization first ALU operend is always required in the accumulator and second operend is present either in register and memory . after the processing result is placed into a accumulator.

Eveluating left to right 

evaluating right to left 

 

 

selected by

8 Comments

Ans given 20B
0
0
why u always use memory?

like in F,X....
0
0
mam,i am assuming instn are present in memory.
0
0
i am evaluting right to left .i missed that point  evaluate the expression from left to right.
0
0
updating now
0
0
yes,

1 address instruction

right?

but if I take register instead of memory, then will not be required memory space will be less?
1
1
Yes it is 1 address intn .

Instn are always stored in memory . So by default we take always memory based instn
0
0

Related questions