search
Log In
0 votes
35 views

The following program is stored in memory unit of the basic computer. What is the content of the accumulator after the execution of program? (All location numbers listed below are in hexadecimal).

$\begin{array}{cl} \text{Location} & \text{Instruction} \\ 210 & \text{CLA} \\ 211 & \text{ADD } 217 \\ 212 & \text{INC} \\ 213 & \text{STA } 217 \\ 214 & \text{LDA } 218 \\ 215 & \text{CMA} \\ 216 & \text{AND } 217 \\ 217 & 1234\text{H} \\ 218 & 9\text{CE}2\text{H} \end{array}$

  1. $1002\text{H}$
  2. $2011\text{H}$
  3. $2022\text{H}$
  4. $0215\text{H}$
in CO and Architecture
recategorized by
35 views

1 Answer

0 votes

210 CLA     // clear accumulator

211 ADD 217  //add contents of location 217 i.e 1234 h to accumulator

212 INC  // increment accumulator by 1  so accumulator contain 1235 h

213 STA 217  // store this value 1235 h at location 217

214 LDA 218 //load accumulator with content of 218 so accumulator now has 9CE2 h

215 CMA // complement (1’s complement )accumulator so accumulator now have  631D  H

216 AND 217 // perform and operation with content of 217 i.e with 1235 h  i.e and of 631D  h & 1235 h which will be                            0215 h

217 1234 H 

218 9CE2 H

Hence option 4 is right ans

Related questions

1 vote
1 answer
1
58 views
Consider a machine with a byte addressable main memory of $2^{16}$ bytes block size of $8$ bytes. Assume that a direct mapped cache consisting of $32$ lines used with this machine. How many bits will be there in Tag, line and word field of format of main memory addresses? $8,5,3$ $8,6,2$ $7,5,4$ $7,6,3$
asked Nov 20 in CO and Architecture jothee 58 views
0 votes
1 answer
2
34 views
A non-pipeline system takes $50$ns to process a task. The same task can be processed in six-segment pipeline with a clockcycle of $10$ns. Determine approximately the speedup ratio of the pipeline for $500$ tasks. $6$ $4.95$ $5.7$ $5.5$
asked Nov 20 in CO and Architecture jothee 34 views
0 votes
1 answer
3
16 views
Which of the following statements with respect to $K$-segment pipelining are true? Maximum speedup that a pipeline can provide is $k$ theoretically It is impossible to achieve maximum speed up $k$ in $k$-segment pipeline All segments in pipeline take same time in computation Choose the correct answer from the options ... $(b)$ and $(c)$ only $(a)$ and $(c)$ only $(a), (b)$ and $(c)$
asked Nov 20 in CO and Architecture jothee 16 views
0 votes
0 answers
4
15 views
Which of the following statements with respect to multiprocessor system are true? Multiprocessor system is controlled by one operating system In Multiprocessor system, multiple computers are connected by the means of communication lines Multiprocessor system is classified as multiple instruction stream and multiple data stream ... $(b)$ only $(a)$ and $(c)$ only $(b)$ and $(c)$ only
asked Nov 20 in CO and Architecture jothee 15 views
...