Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the following lines of code, answer the questions below: ; OFFSET = (Question #1) ; OFFSET - (Question #2) ; OFFSET = (Question #3)

image text in transcribed

For the following lines of code, answer the questions below: ; OFFSET = (Question #1) ; OFFSET - (Question #2) ; OFFSET = (Question #3) ; OFFSET = (Question #4) ; OFFSET = (Question #5) 001 .data 002 bArray LABEL BYTE 003 wArray LABEL WORD 004 dwArray DWORD 12435687h, 2212h, 90392839h 005 dvar LABEL DWORD 006 wArray2 WORD 8347h, 74B3h, 8273h, 1921h 007 008 .code 009 mov eax, DWORD PTR (WArray2 + 1] 010 mov ax, (WArray + 2] 011 mov al, [bArray + 31 012 add al, 160 013 mov eax, (dvar + 1] 014 mov eax, (dwArray + 4) 015 mov ecx, 101b 016 Li: 017 add eax, 220 018 loop L1 019 sub eax, 1 ; eax = (Question #6) i eax = (Question #7) ; eax - (Question #8) () ; eax = (Question #9) i eax - Question #10) i eax - (Question #11) ; eax - (Question #12) Note: I would strongly suggest you construct a table like we did in Assignment #2 for laying out the memory. Work under the assumption that the data section begins at offset Ox0000. For questions 1-5, make sure you write your answer as a 2 byte hexadecimal value. Do not put the Ox in front or put an 'h' after it. This quiz assumes that the memory address o would be written as '0000'. For questions 6-12, ensure you write your responses as dword sized hexadecimal values. For any line that would generate an error - write Error and then ignore that line. 1. The offset of bArray is 2. The offset of wArray is 3. The offset of dwArray is 4. The offset of dVar is 5. The offset of wArray2 is 6. The value of EAX after the execution of line 009 is 7. The value of EAX after the execution of line 010 is 8. The value of EAX after the execution of line 011 is 9. The value of EAX after the execution of line 012 is 10. The value of EAX after the execution of line 013 is 11. The value of EAX after the execution of line 014 is 12. The value of EAX after the execution of line 019 is For the following lines of code, answer the questions below: ; OFFSET = (Question #1) ; OFFSET - (Question #2) ; OFFSET = (Question #3) ; OFFSET = (Question #4) ; OFFSET = (Question #5) 001 .data 002 bArray LABEL BYTE 003 wArray LABEL WORD 004 dwArray DWORD 12435687h, 2212h, 90392839h 005 dvar LABEL DWORD 006 wArray2 WORD 8347h, 74B3h, 8273h, 1921h 007 008 .code 009 mov eax, DWORD PTR (WArray2 + 1] 010 mov ax, (WArray + 2] 011 mov al, [bArray + 31 012 add al, 160 013 mov eax, (dvar + 1] 014 mov eax, (dwArray + 4) 015 mov ecx, 101b 016 Li: 017 add eax, 220 018 loop L1 019 sub eax, 1 ; eax = (Question #6) i eax = (Question #7) ; eax - (Question #8) () ; eax = (Question #9) i eax - Question #10) i eax - (Question #11) ; eax - (Question #12) Note: I would strongly suggest you construct a table like we did in Assignment #2 for laying out the memory. Work under the assumption that the data section begins at offset Ox0000. For questions 1-5, make sure you write your answer as a 2 byte hexadecimal value. Do not put the Ox in front or put an 'h' after it. This quiz assumes that the memory address o would be written as '0000'. For questions 6-12, ensure you write your responses as dword sized hexadecimal values. For any line that would generate an error - write Error and then ignore that line. 1. The offset of bArray is 2. The offset of wArray is 3. The offset of dwArray is 4. The offset of dVar is 5. The offset of wArray2 is 6. The value of EAX after the execution of line 009 is 7. The value of EAX after the execution of line 010 is 8. The value of EAX after the execution of line 011 is 9. The value of EAX after the execution of line 012 is 10. The value of EAX after the execution of line 013 is 11. The value of EAX after the execution of line 014 is 12. The value of EAX after the execution of line 019 is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Define direct marketing and give some real world examples.

Answered: 1 week ago