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

27. In the following data definition, assume that List.2 begins at offset 2000h

ID: 3725998 • Letter: 2

Question

27. In the following data definition, assume that List.2 begins at offset 2000h the third value (5)? . What is the offset of List2 WORD 3, 4,5, 6,7 a. 20008h b. 2002h c. 2000h d. 2004h Use the following data definitions until notified otherwise: bytel BYTE OFFh,1,2 wordl WORD OFFFFh, 1,2 dwordl DWORD 10h, 20h, 30h, 40h 28. What is the hexadecimal value of AX when this code executes? mov esi, OFFSET wordl add esi,4 mov ax, [esi] a. b. 2 d. 3 29. What is the final hexadecimal value of AX when this code executes? mov ah, bytel+ 2 add ah, 2 a. b. 01h c. Offh d. 0 30. What is the final hexadecimal value of EAX when this code executes? mov eax, dwordl [edx] a. 00000010h b. 20000000h c. 00300000h d. 00000030h

Explanation / Answer

Q27.

The offset would be

2004 as a word occupies 2 bytes and we have to move two places ahead hence 4 bytes so 2000+4

Q28

This basically moves the value 0002 in ax as the as it assumes that the lower byte is present in the offset given by this

So

ax will contain 2

Q29

byte1+2 is same as moving 2 in ah

Hence adding 2 to 2 gives 4

So ah will finally contain

4

Q30

This will move the dword value which is present at offset of 8 from dword1

Hence the answer would be

D

or 00 00 00 30

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