Menu

[Solved] 1 Assume Given Values Eax Ebx Ecx Write Assembly Code Following Eax Ecx Edx Eax Ebx 2 Writ Q37267143

1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )-(eax

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 assembly to Zero eax. Don’t use Sub instruction and you must use hex numbers only as immediate numbers. 4. Implement the following arithmetic expression in assembly language: EBX var1-var2-9var3 /size of variables, 4 bytes each 5. Write a piece of code in assembly that implements the following C++ statement num1- num2 4; //x and y are of size word (2 bytes) 6. Write a piece of code that implements the following C++ statements d ‘w /a,d,b are of size byte. a=d+1; b-a 2; Show transcribed image text 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 assembly to Zero eax. Don’t use Sub instruction and you must use hex numbers only as immediate numbers. 4. Implement the following arithmetic expression in assembly language: EBX var1-var2-9var3 /size of variables, 4 bytes each 5. Write a piece of code in assembly that implements the following C++ statement num1- num2 4; //x and y are of size word (2 bytes) 6. Write a piece of code that implements the following C++ statements d ‘w /a,d,b are of size byte. a=d+1; b-a 2;

Expert Answer


Answer to 1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx )… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *