Open In App

UGC-NET | UGC NET CS 2014 Dec – III | Question 4

Like Article
Like
Save
Share
Report



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


    Last Updated : 28 Jun, 2018
    Like Article
    Save Article
    Previous
    Next
    Share your thoughts in the comments
    Similar Reads