Skip to content
Related Articles
Open in App
Not now

Related Articles

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

Improve Article
Save Article
Like Article
  • Last Updated : 28 Jun, 2018
Improve Article
Save Article
Like Article



Match the following:

List – IList – 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
    Like Article
    Save Article
    Related Articles

    Start Your Coding Journey Now!