Question: Consider the following .data segment: L1 L2 L3 L4 L5 3A FF 01 02 FF 6B B2 AA 42 41 61 62 D3 D5 D7

Consider the following .data segment:

L1 L2 L3 L4 L5 3A FF 01 02 FF 6B B2 AA 42 41 61 62 D3 D5 D7

and the following program fragment:

mov eax, L3 mov ebx, L5 mov ecx, 0 mov cl, [L2] sub ebx, ecx mov ebx, [ebx] add eax, 2 mov ecx, [eax] mov [L4], cx mov ax, [L1] add bx, ax mov [L1], ebx

After the code finishes executing, what are the contents of the 15 memory bytes starting at address L1, on a machine using Little Endian?

Here is the way to show your work for each instruction:

If an instruction updates the value of a register, show the value of that register (e.g., ecx = 00AABBCC, bx = FF FF, eax = the address of the 8th byte, edx = the address of the byte with value 42);

If an instruction updates memory, then show the full memory state after that instruction.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!