Loading...

Loading, please wait...

ExamDost Practice Questions

Practice over 1000+ GATE-level questions from this topic!

Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.

Q#1 Microprocessor GATE EE 2023 NAT +2 marks -0 marks

In a given 8-bit general purpose micro-controller there are following flags. C-Carry, A-Auxiliary Carry, O-Overflow flag, P-Parity (0 for even, 1 for odd)  and  are the two general purpose registers of the micro-controller. After execution of the following instructions, the decimal equivalent of the binary sequence of the flag pattern [CAOP] will be

MOV RO,

MOV R1, +0x46

ADD R0, R1

Explanation:

MOV R0, 0 × 60 ← (60)H is stored in R0

MOV R1, 0 × 46 ← (46)H is stored in R1

ADD R0, R1

Both values get added

A picture containing table

Description automatically generated

Number of 1’s in result = 4 = even ∴ P =0

Overflow bit is 1 because both numbers have MSB = 0 i.e. positive numbers but result has MSB = 1 i.e. negative number.

CAOP = 0010; decimal value = 2

Browse Practice Questions by Chapters / Topics in Browse Practice Questions by Chapters / Topics in GATE Electrical Engineering
Total Questions

Attempted

% Attempted

Correct

% Correct

Topic Questions Attempted Correct
Network Analysis 208 0 0
Signals and Systems 21 0 0
Control Systems 18 0 0
Analog Electronics 10 0 0
Digital Electronics 138 0 0
Electrical Machines 17 0 0
Power Electronics 17 0 0
Power Systems 18 0 0
EMFT EE 8 0 0
Measurement 6 0 0
Engineering Mathematics 27 0 0
General Aptitude 104 0 0