UGC-NET Computer Science July 2016 Solved Paper 2
Q:: 32 The content of the accumulator after the execution of the following 8085 assembly
language program, is :
MVI A, 42H
MVI B, 05H
UGC: ADD B
DCR B
JNZ UGC
ADI 25H
HLT
(1) 82 H (2) 78 H
(3) 76 H (4) 47 H
MVI A, 42H
MVI B, 05H
UGC: ADD B
DCR B
JNZ UGC
ADI 25H
HLT
(1) 82 H (2) 78 H
(3) 76 H (4) 47 H
Answer:: (3)
Explanation::
Content of accumulator register (A):- 01000010
Content of register (B) :- 00000101
A : 01000010
+B : 00000101
: 01000111
B = B - 1
B = 00000100
A : 01000111
+B : 00000100
: 01001011
B = B - 1
B = 00000011
A : 01001011
+B : 00000011
: 01001110
B = B - 1
B = 00000010
A : 01001110
+B : 00000010
: 01010000
B = B - 1
B = 00000100
A : 01010000
+B : 00000001
: 01010001
B = B - 1
B = 00000000
Now the loop exits as contents of B register becomes 00000000.
Add 25H to A register
A:- 01010001
+00100101
01110110
So, Contents of accumulator (A) becomes 01110110 i.e. 76H.
UGC-NET Computer Science july 2016 solved paper,UGC-NET Computer Science july 2016 paper 2,cbse-net july 2016 solved paper
ugc net computer science question papers,ugc net computer science december 2014 question papers,
ugc net computer science june 2014 question papers,
ugc net computer science december 2014 question papers,
ugc net computer science june 2013 question papers,
ugc net computer science december 2013 question papers,
ugc net computer science june 2012 question papers,
ugc net computer science december 2012 question papers,
ugc net computer science june 2011 question papers,
ugc net computer science december 2011 question papers,
ugc net computer science june 2010 question papers,
ugc net computer science december 2010 question papers,
ugc net computer science june 2009 question papers,
ugc net computer science december 2009 question papers,
ugc net computer science june 2008 quest
ugc net computer science june 2014 question papers,
ugc net computer science december 2014 question papers,
ugc net computer science june 2013 question papers,
ugc net computer science december 2013 question papers,
ugc net computer science june 2012 question papers,
ugc net computer science december 2012 question papers,
ugc net computer science june 2011 question papers,
ugc net computer science december 2011 question papers,
ugc net computer science june 2010 question papers,
ugc net computer science december 2010 question papers,
ugc net computer science june 2009 question papers,
ugc net computer science december 2009 question papers,
ugc net computer science june 2008 quest
No comments:
Post a Comment