recategorized by
1,378 views
1 votes
1 votes
The size of the instruction in a single accumulator is 16 bits. In order to evaluate the expression Y = A-B+C / E+F , how much memory space is required to store the program?

a) 18 bytes

b)24 bytes

c)22 bytes

d)20 bytes
recategorized by

3 Answers

1 votes
1 votes

Since each instruction is 16 bits, 16/8 = 2 bytes.

Instructions:

Load E

Add F

Store T

Load A

Sub B

Add C

store P

Div T

Store Y

In this way we have 8 instructions.
Therefore, 9*2 = 18 bytes.

0 votes
0 votes
Load C

Div E

Add F

Add A

Sub B

Store Y

there will be 2 Bytes

Ans will be 7*2 =14 Bytes
0 votes
0 votes

16 bit = 2byte

Instructions:

Load E

Add F

Store T

Load A

Sub B

Add C

store P

Div T

Store Y

total instruction 9

 

so 9*2 = 18  byte

option A is true

 

Related questions

2 votes
2 votes
1 answer
1
rahuldb asked Nov 17, 2016
5,593 views
Write a program that can evaluate the following expressions in single accumulator processor and stack base computer.(A*B)+(C*D)
0 votes
0 votes
2 answers
2
Subhadeeppathak asked Apr 23, 2022
589 views
In 0-address instruction, no address is specified within an instruction along with the Opcode, so is it possible to use 0-address instruction in accumulator based archite...
1 votes
1 votes
1 answer
3
sh!va asked Jul 7, 2016
2,578 views
Predict the accumulator content after following instructions:XRA AMVI B, F0HSUB B a. F0 Hb. 0FHc.01 Hd. 10H
2 votes
2 votes
1 answer
4