Question

Se al A c and code frogments MUST use 32 ぁ ar movennes (anor be nedfra-ne ibrary function or procedural calls ino- Pe Peue c for ll codr ond code frogments only othu ey document your code with Comments unless the code size is Drow Fow Chort for any flow of control involving branches and loops Use PoCedures as modules to organize most of the code and code fragments. In doing be sure to follow stack discipline, and use of activation frames 1 Assume the registers are initialized to the indicated values: EAX: 12345D, EBX: 9528D, ECX:-1275D, EDX:-3001D. Determine the value in the destination register, (and the values of the ZF, PF, SF, OF, CF flags), aftes execution of each of the following instructions.Choose and indicate whether the instructions are executed in sequence; or considered executed independently of each other. a) And EAX, EBX b) Not EDX c) SHL EAX, CL d) SHR EAX, CL e) Or EAX, ECX f XOR EAX, ECX 8) SAL EBX, 9 h) SAR EAx, 5 i) ROR EAX, CL j) ROL EAX, CL k) RCL EAX, CL l) RCR EAX, CL Do the following problems. a) What are the disadvantages of passing parameters via the stack? (Hint: compare advantages of the alternative methods. What these other options?) b) Write a code fragment that illustrates how value/s) can be returned from a PRO stack, and then manipulated in the calling procedure. Write a code fragment to illustrate how storage for local variables in a PROC

1) Assume the registers are initialized to the indicated values:
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution: Note: More than one question is asked, please post as separate questions 2. The values of registers in binary form

Add a comment
Know the answer?
Add Answer to:
1) Assume the registers are initialized to the indicated values: Se al A c and code...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that...

    1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx ) - (eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax = 0x15DBCB19. At the end of your code ecx = 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5. Write one line of code in...

  • Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF...

    Need help on Assembly language 1.Solve the following conditions: A. Suppose AL contains 11001011 and CF = 1.    Give the new contents of AL after each of the following instructions is executed.    Assume the above initial conditions for each part of this question. a. SHL AL,1 b. SHR AL,1 c. ROL AL,2 d. ROR AL,3 e. SAR AL,2 f. RCL AL,1 g. RCR AL,3 B. Suppose EAX contain ABCDH.    Show the contents of BX and CX after...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT