Skip to content
Related Articles

Related Articles

UGC-NET | UGC NET CS 2014 Dec – III | Question 4
  • Last Updated : 28 Jun, 2018



Match the following:

List – I List – II
(a)XCHG (i)only carry flag is affected.
(b)SUB (ii) no flags are affected.
(c)STC (iii) all flags other than carry flag are affected.
(d)DCR (iv)all flags are affected.


codes:

(a) (b) (c) (d)
(1) (iv) (i) (iii) (ii)
(B) (iii) (ii) (i) (iv)
(C) (ii) (iii) (i) (iv)
(D) (ii) (iv) (i) (iii)



(A) (A)
(B) (B)
(C) (C)
(D) (D)


Answer: (D)

Explanation:

  • In XCHG instruction exchange of data takes place so, no flags are affected.
  • In SUB instruction subtraction occurs so, all flags are affected.
  • STC is set carry flag so, only carry flag will be affected
  • DCR is decrement flag all flag other then carry will be affected.
  • So, option (D) is correct.

    Quiz of this Question

    My Personal Notes arrow_drop_up
    Recommended Articles
    Page :