Question

13. (True/False): The register list in the USES directive must use commas to separate the register...

13. (True/False): The register list in the USES directive must use commas to separate the register names.

11. (True/False): The USES operator lets you name all registers that are modified within a procedure.

2. Which instruction pushes the 32-bit EFLAGS register on the stack?

18. Which statement is true about what will happen when the example code runs?

1: main PROC

2: mov eax,40

3: push offset Here

4: jmp Ex4Sub

5: Here:

6: mov eax,30

7: INVOKE ExitProcess,0

8: main ENDP

9:

10: Ex4Sub PROC

11: ret

12: Ex4Sub ENDP

a. EAX will equal 30 on line 7

b. The program will halt with a runtime error on Line 4

c. EAX will equal 30 on line 6

d. The program will halt with a runtime error on Line 11

Homework Answers

Answer #1

13. Answer :

False

Explanation :

The register list in the USES directive need not use commas to separate the register names.

11. Answer :

True

Explanation :

The USES operator lets you name all registers that are modified within a procedure.

2. Answer :

PUSHFD instruction

Explanation :

  • The PUSHFD instruction pushes the 32-bit EFLAGS register on the stack.
  • POPFD instruction pops the 32-bit EFLAGS register from the stack.

18. Answer :

c. EAX will equal 30 on line 6

Explanation :

  • In line number 6, 30 is moved to eax and now eax will be 30.
  • The program will not halt with a run time error.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions