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

Source Code .DATA EQU 10h SWORD 5, 0,6,0,8,o,-1 DD OAFFFFH BYTE ? EAX CD6789AB E

ID: 3724774 • Letter: S

Question

Source Code .DATA EQU 10h SWORD 5, 0,6,0,8,o,-1 DD OAFFFFH BYTE ? EAX CD6789AB EBX 00000020 ECX = 00000010 EDX 0000000F ESP 0000006B EBP 00000000 ESI = 00000004 EDI = 00000008 len array Memory Data Segment 1250:0000 B4 4C CD 10 05 00 00 00 06 00 00 00o 1250:000c 08 00 00 00 FF FF FF FF OA 00 0B 00 1250:0018 0c 00 12 11 18 17 4E OF 00 00 00 38 1250:0024 78 02 00 AF 00 BC 00 DE 01 00 43 56 EIP- o 1250:0030 01 00 34 00 56 00 11 00 34 00 22 00 DS = 1250 For the following instructions, if the instruction affects a register then shows the value in the 32 bit ex If it affects memory, rewrite one entire line of memory that is affected. Assume carry flag-1

Explanation / Answer

30.

Here CL is 10 and when multiplied with AL which is AB we get

AX=0AB0

31.

Here DH is 00

Hence the result stored in AX will be 0000

32.

IMUL DH WILL PRODUCE THE SAME RESULT AS MUL DH AS DH IS 00

Hence the result is AX=0000

33.

Here Value stored in BYTE PTR[BX] is 00

Hence AX=0000

34.

MUL array will refer to the first value of array which is 0005 Hence multiplying it AX gives

DX=0002

AX=B057

DO GIVE A THUMBS UP AND IN CASE THERE ARE DOUBTS LEAVE A COMMENT.

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