Question: THESE QUESTIONS ARE ALL COMPUTER ORGANIZATION SO ANSWER ACCORDING TO THE ASSEMBLY LANGUAGE Fast Answer: (80 pts, 4 pts each) 1. The following instruction reserves

THESE QUESTIONS ARE ALL COMPUTER ORGANIZATION

SO ANSWER ACCORDING TO THE ASSEMBLY LANGUAGE

Fast Answer: (80 pts, 4 pts each) 1. The following instruction reserves stack space for (parameters, local variables, global variables, registers). sub esp, 0x10

2. When a value is pushed to the stack, the data is written (before, after) esp is (incremented, decremented).

3. Given the stack frame set up we have seen and discussed in class, mov eax, [ebp + 8] will move what into eax? (global variable, parameter, local variable)

4. Given that same stack frame set up, what will be in edx after executing this instruction: mov edx, [ebp + 4]? __________ Hint: It is NOT any of the selections above.

5. There are two instructions that efficiently set a register to zero. List one of them. ________

6. After executing either of those instructions, what is the value of the ZERO flag? ________

7. Given that cl = 0x94, show the value of eax after this instruction: movzx eax,cl

8. Given that cl = 0x8F, show the value of eax after this instruction: movsx eax,cl

9. A pop ecx instruction uses which register implicitly? _______

10. Ecx is implicitly used by which instructions? ______

11. The flag used to control whether string instructions increment or decrement the implicit registers is called ______.

12. Exactly how many bytes are in 1 MB of memory (Express in power of 2) ? ______

13. Given a 1 byte operand, what is the range of signed displacement values? ______

14. The stack is always aligned to a _____ byte boundary.

15. List the registers implicitly used by the string instructions?

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!