ANSWER:
4. Complete the following table using only hexadcimal numbers in the table P=((((2+7+5) *743) *7-1)*7 +...
Is this right? 15. Complete the following table in hexadecimal numbers only: INSTRUCTIONS eax ebx BYTES: 9 10 11 12 13 14 15 16 17 mov eax, 2ACB16h 002ACB16h mov ebx, 9d 002ACB16h 9h add ebx, 1d 002ACB16h Ah mov [ebx], eax 002ACB16h Ah 1 6 C B 2 A 0 0 add [ebx], ebx 002ACB16h Ah 2 0 C B 2 A 0 0 add eax, ebx 002ACB20h Ah 2 0 C B 2 A 0 0
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...
Assume no syntax errors and all partial programs are correct and can be run. No numbers with a minus sign is accepted. 13. Complete the table below only using hexadecimal numbers: AL INSTRUCTIONS ebx eaX mov eax, 2 mov ebx 7D12Eh mov [eax], ebx mov eax, 4 mov ebx, 568923h mov [eax], ebx mov ebx, 3 mov [eax], ebx
Assembly language: Before executing the following code, the value in eax was 1 What will be the value in eax after executing the following code: mov ebx, eax shl eax, 4 shl ebx, 3 add eax, ebx
assembly language LAB #11-IMPLEMENT SLIDE #56 of the CHAPTER SEVEN SLIDES IN TWO WAYS EBX contains 200; ECX contains 42 1) Using SHIFT INSTRUCTIONS 2) Using the MUL and DIV INSTRUCTIONS Implement the following expression using signed 32-bit integers: eax = (ebx * 20) / ecx mov eax,20 imul ebx idiv ecx LAB #11-IMPLEMENT SLIDE #56 of the CHAPTER SEVEN SLIDES IN TWO WAYS EBX contains 200; ECX contains 42 1) Using SHIFT INSTRUCTIONS 2) Using the MUL and DIV...
read carefully Which DOES NOT evaluate. Consider the following arithmetic operations in C: int X-20; int Y-20; int Z-2*(X+Y) which assembly code(0x86) does not evaluate value for Z correctly? mov eax.X b) mov ebx. Y add eax ebx mov el.4 mov ebx.Y a) add eax.ebx mov cl.2 imul cl mov Z eax imul cl shr eax. 1 mov Z.eax d) mov eax.X mov ebx.Y add eax.ebx shl eax, I mov Z,eax mov eax X c) mov ebx,Y shl eax.2 shl...
13. Complete the table below. Use only hexadecimal numbers only EBX STACK AL CODE mov ax, 5D6h push ax pushw 3467h mov ebx,3ABCDOh push ebx. DoD ax pop ebx 13. Complete the table below. Use only hexadecimal numbers only EBX STACK AL CODE mov ax, 5D6h push ax pushw 3467h mov ebx,3ABCDOh push ebx. DoD ax pop ebx
6. What will be the final value in EDX after this code executes? mov edx, 1 mov eax,7FFFh cmp eax,0FFFF8000h jl L2 mov edx,0 し2: 7. (True/False): The following code will jump to the label named Target. mov eax,-30 cmp eax,-50 ig Target 8. Implement the following pseudocode in assembly language. Use short-circuit evaluation and assume that vall and X are 32-bit variables. if vall >ecx ) AND (ecx> edx) X=1 else X=2;
pls write correct answers asap.... Note- You are athempting question 9 out of 10 Match the following: 1) Quick Sort A) Divide and conquer programming 2) Task Scheduling B) Greedy programming 3) Merge Sort C) Dynamic programming 4) Prim's D) Not stable a) 1-B2-A 3-C4-D b) 1-D 2-C3-A 4-B c) 1-D 2-C 3-B 4-A d) 1-C 2-D 3-A 4-B Ansre Note - You are attermpring qpestion out of 10 Odd man out: e Topological sort Algorithm DFS Algorithm Binary search...
Using the Windows Starter Visual Studio project create the following five programs. 1. Write a program that will store address information in unique values and then display the full address in a window at runtime (10pts). Example: Sam Coder 1 Main Street Kansas City, MO 64018 2. Write a program that will swap the City and State fields and then display the full address in a window at runtime (10pts). Example: Sam Coder 1 Main Street MO, Kansas City 64018...