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

1.5 IrCS-135Ch, IP-0100h, after a nop (machine code 90h) instruction, (a) CS= 13

ID: 3711082 • Letter: 1

Question

1.5 IrCS-135Ch, IP-0100h, after a nop (machine code 90h) instruction, (a) CS= 135Ch. IP-0100h (b) CS-135Dh, IP-0100h (c) CS-135Ch, IP-0101h (d) CS-135Dh, IP-0101h 1.6 IfCX-01h, IP-0100h, after a loop 105 (machine code E203h) instruction (a) IP-0100h (b) IP-0101h (c) IP-0102h (d) IP-0103h 1.7 A RET instruction from a near procedure will modify (a) CS but not IP (b) IP but not CS (b) Both CS and IP (b) Neither CS or IP 1.8 Zero flag bit ZF-0 means a result of (a) 0 (b) 1 (c) -1 (c) non-zero 1.9 An IRET instruction will update (a) CS only (b) IP only (c) Both CS and IP, but not FR (d) CS, IP, and FR

Explanation / Answer

Answer)
1.7) A RET instruction from a near procedure will modify -

d) Neither CS or IP

The RET instruction affects and modifies no flags.

1.8) Zero flag bit ZF=0 means a result of -

d) non-zero

Here the ZF=0 means a non-zero result.

1.9) An IRET instruction will update -

c) Both CS and IP but not FR

The saved value of IP is copied from the stack to IP, and the stored value of CS from the stack to CS. Thus Both CS and IP are updated.