Question: Use the following declarations and address information for problems #2 - 4 2) MAXSIZE = 225 .data list DWORD MAXSIZE DUP (?) After the program

Use the following declarations and address information for problems #2 - 4

2)

MAXSIZE = 225 .data list DWORD MAXSIZE DUP (?)

After the "program" is loaded and relocated, the label list is equivalent to absolute address 1000h (i.e. during program execution, the list array starts at memory address 1000h). All addresses are given in hexadecimal; other values are in decimal.

How many bytes of memory are reserved by the declaration of list? (Ignore the .0000 that Canvas adds)

3) After adding and executing the following statement:

mov edi, OFFSET list

...which of the following statements correctly assigns the value 226 to the element at index 9 of the list array? (use the declarations shown in Question 2)

Group of answer choices

all of these

mov list[edi+36],226

mov [edi+36],226

mov 226, [edi+9]

mov list[9],226

4) After code fragment U is executed, what are the decimal contents of the first 6 elements of the list array?

;code fragment U mov edi, OFFSET list mov ebx, 0 mov eax, 4 mov ecx, MAXSIZE _top: inc eax mov [edi+ebx], eax inc eax add ebx, TYPE list loop _top

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!