Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each of the following instructions, give the new destination contents and th

ID: 3786126 • Letter: F

Question

 For each of the following instructions, give the new destination contents         and the new settings of CF,SF,ZF,PF, and OF. Suppose that the flags are         initially 0 in each part of this question. (Note: need not show AF)           a. ADD  AX,BX   where AX contains 7FFFh and BX contains 0001h.          b. SUB  AL,BL   where AL contains 01h and BL contains FFh.          c. DEC  AL      where AL contains 00h.          d. NEG  AL      where AL contains 7Fh.          e. XCHG AX,BX   where AX contains 1ABCh and BX contains 712Ah.          f. ADD  AL,BL   where AL contains 80h and BL contains FFh.          g. SUB  AX,BX   where AX contains 0000h and BX contains 8000h.          h. NEG  AX      where AX contains 0001h.            3. Suppose ADD AX,BX is executed. In each of the following part, the first          number being added is the contents of AX, and the second number is the          contents of BX. Give the resulting value and tell whether unsigned or signed          overflow occurred.            a. 512Ch             +4185h             ------            b. FE12h             +1ACBh             ------            c. E1E4h             +DAB3h             ------            d. 7132h             +7000h             ------            e. 6389h             +1176h             ------           4. Suppose SUB AX,BX is executed. In each of the following part, the first          number is the initial contents of AX and the second number is the contents of          BX. Give the resulting value and tell whether unsigned or signed overflow          occurred.            a. 2143h             -1986h             ------            b. 81FEh             -19BCh             ------            c. 19BCh             -81FEh             ------            d. 0002h             -FEOFh             ------            e. 8BCDh             -71ABh             ------  

Explanation / Answer

3)

74FFh OVERFLOW : NO

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote