...
Question 7130 – NVS PGT CS 2019 Part-A
November 20, 2023
Question 16797 – Compiler-Design
November 20, 2023
Question 7130 – NVS PGT CS 2019 Part-A
November 20, 2023
Question 16797 – Compiler-Design
November 20, 2023

UGC NET CS 2015 Dec – paper-3

Question 2
What will be the output at PORT1 if the following program is executed ?
MVI B, 82H 
MOV A, B 
MOV C, A 
MVI D, 37H 
OUT PORT1 
HLT
A
37H
B
82H
C
B9H
D
00H
Question 2 Explanation: 
MOV instruction copies the data from one location to other
MVI B, 82H / Copy value 82H to register B
MOV A, B / Copy value of B (82H) to accumulator A
MOV C, A / Copy value of accumulator A (82H) to register C
MVI D, 37H / Copy value 37H to register D
OUT PORT1 /Copy value of accumulator A (82H) to PORT 1 (because still accumulator A is having 82H)
Correct Answer: B
Question 2 Explanation: 
MOV instruction copies the data from one location to other
MVI B, 82H / Copy value 82H to register B
MOV A, B / Copy value of B (82H) to accumulator A
MOV C, A / Copy value of accumulator A (82H) to register C
MVI D, 37H / Copy value 37H to register D
OUT PORT1 /Copy value of accumulator A (82H) to PORT 1 (because still accumulator A is having 82H)
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!