The Gateway to Computer Science Excellence
+1 vote
74 views
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 Veteran (119k points) | 74 views

1 Answer

+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 

 

 

by Boss (36.7k points)
selected by
0
Ans given 20B
0
why u always use memory?

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

1 address instruction

right?

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

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

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,385 answers
198,542 comments
105,343 users