Exercise #1: Memory Layout Question #1: A B C D E F 1F 00 00 00 E5 FF FF FF E4 FF FF FF 61 00 7A 17 43 00 AA AA 43 Question #2: A yes B yes C yes D no E no F yes Exercise #2: Memory and Registers L1 L2 L3 L4 L5 Initial state: 3A FF 01 02 FF 6B B2 AA 42 41 61 62 D3 D5 D7 mov eax, L3 ; eax = address of the B2 byte mov ebx, L5 ; ebx = address of the D3 byte mov ecx, 0 ; ecx = 00 00 00 00 mov cl, [L2] ; ecx = 00 00 00 02 sub ebx, ecx ; ebx = address of the 61 byte mov ebx, [ebx] ; ebx = D5 D3 62 61 add eax, 2 ; eax = address of the 42 byte mov ecx, [eax] ; ecx = 62 61 41 42 mov [L4], cx ; updates the memory state: L1 L2 L3 L4 L5 3A FF 01 02 FF 6B B2 AA 42 42 41 62 D3 D5 D7 mov ax, [L1] ; ax = FF 3A add bx, ax ; ebx = D5 D3 62 61 FF 3A D5 D3 61 9B mov [L1], ebx ; udates the memory state: L1 L2 L3 L4 L5 Final state: 9B 61 D3 D5 FF 6B B2 AA 42 42 41 62 D3 D5 D7