• edited by
937 views
0 0 votes

Common Data Questions (8 and 9):
Consider an accumulator-based CPU supports only single address instruction. The CPU supports the following instructions.
LOAD A : Load A from memory into accumulator AC. STORE A : Store contents of accumulator AC in memory location M.
ADD B : Load B into data register (DR) and add to accumulator.
MOVE A, $B$ : Move content of $B$ to $A$.
SUB A, B : Subtract B from A:
Q. 8 Assume CPU uses the memory referencing and each instruction LOAD, STORE and ADD takes one clock cycle. To compute $Z=X+Y C P U$ takes how many minimum number of clock cycles?
(a) 2
(b) 3
(c) 4
(d) 5
Q. 9 How many minimum clock cycles are needed when accumulator becomes O . If each instruction takes one clock cycles?

  1. 0
  2. 1
  3. 2
  4. 3

1 Answer

0 0 votes
Q8)

LOAD X

ADD Y

STORE Z

So answer should be 3.
Position:
Show:

Related questions

1 1 vote
1 1 answer
712
712 views
Smriti012 asked Feb 1, 2017
712 views
Q. 7 Consider a CPU has 8 general-purpose registers $R_{0}, R_{1}, \ldots, R_{7}$ and supports the following operations.\[\begin{array}{l}\text { ADD R } R_{a}, R_{b}, R_...
0 0 votes
0 0 answers
694
694 views
1 1 vote
1 answers 1 answer
2.0k
2.0k views
sourav. asked Jan 29, 2016
1,975 views
Consider 1 GHz clock frequency processor, uses different operand accessing models shown below: Assume that 2 memory...
0 0 votes
0 0 answers
325
325 views