Exams › GATE › Technical
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) R0 and R1 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 [C A O P] will be ________
MOV R0, +0x60
MOV R1, +0x46
ADD R0, R1
- 0
- 1
- 2
- 3
Correct answer: 2
Solution
The correct option is 2 because the addition of R0 (0x60) and R1 (0x46) results in a sum that sets the Auxiliary Carry (A) and Overflow (O) flags, while the Carry (C) and Parity (P) flags remain clear. This corresponds to the binary pattern 0010, which is 2 in decimal.
Related GATE Technical questions
- If the input x(t) and output y(t) of a system are related as y(t) = max(0, x(t)), then the system is
- Two discrete-time linear time-invariant systems have impulse responses h1[n] = δ[n−1] + δ[n+1] and h2[n] = δ[n−1] + δ[n+1], where δ[n] is the Kronecker delta. The overall system is
- Consider a power system consisting of N number of buses. Buses in this power system are categorized into slack bus, PV buses and PQ buses for load flow study. The number of PQ buses is N_L. The balanced Newton-Raphson method is used to carry out load flow study in polar form. H, S, M, and R are sub-matrices of the Jacobian matrix J as shown below:
[ΔP]
[ΔQ] = J [Δδ]
[ΔV], where J = [H S
M R]
The dimension of the sub-matrix M is
- Inductance is measured by
- In the Nyquist plot of the open-loop transfer function G(s)H(s) = (3s + 5)/(s - 1) corresponding to the feedback loop shown in the figure, the infinite semi-circular arc of the Nyquist contour in s-plane is mapped into a point at
- Consider a unity-gain negative feedback system consisting of the plant G(s) (given below) and a proportional-integral controller. Let the proportional gain and integral gain be 3 and 1, respectively. For a unit step reference input, the final values of the controller output and the plant output, respectively, are
G(s) = 1/(s - 1)
⚔️ Practice GATE Technical free + battle 1v1 →