F. Complete the table below. Use only hexadecimal numbers only.
All numbers are hexdecimal
| Instructions | ebx | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| mov eax, 6 | ||||||||||||
| mov ebx 2E0D61E | ||||||||||||
| mov [eax], ebx | ||||||||||||
| mov eax, 4 | ||||||||||||
| mov ebx 7942 | ||||||||||||
| mov [eax], ebx | ||||||||||||
| mov ebx, 5 | ||||||||||||
| mov ebx 'Ouch' | ||||||||||||
| mov eax 1 | ||||||||||||
| mov [eax], ebx |
mov eax,6 ; ebx = un-defined yet
mov ebx,0x2E0D61E ; ebx = 02 E0 D6 1E
mov [eax],ebx ; ebx = 02 E0 D6 1E
mov eax,4 ; ebx = 02 E0 D6 1E
mov ebx,7942 ; ebx = 00 00 1F 06
mov [eax],ebx ; ebx = 00 00 1F 06
mov ebx,5 ; ebx = 00 00 00 05
mov ebx,'Ouch'; ebx = 4F 75 63 68
mov eax, 1 ; ebx = 4F 75 63 68
mov [eax],ebx ; ebx = 4F 75 63 68
F. Complete the table below. Use only hexadecimal numbers only. All numbers are hexdecimal Instructions ebx...
10. Complete the table below only using hexadecimal numbers: AL CODE EBX EAX [EAX] mov eax, 2567922 mov ebx, 2567922h mov [eax], eax mov ebx, [eax]
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
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
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
4. Complete the following table using only hexadcimal numbers in the table P=((((2+7+5) *743) *7-1)*7 + 4) *7-2 ASSEMBLY LANGUAGE PSEUDO-CODE AL PSEUDO-CODE PEAXX mov x7 mov p. EAX:= P mov eax, p mul x add eax,5 mov p. eax mov eax. p mul x add eax, 3 mov p, eax EAX:= EAX + 5 P := P*X + 3 EAX:= P EAX: EAX*X EAX:= EAX + 3 P:= 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...
14. In the code from Question 12 true is: A. a constant B. a variable C. Initialized data D. none of these 15. In the code from Question 12 true and false are: A. useless B. necessary for the display C. check if the contents of the eax and ex registers are the same D. help with indirect addressing 16. Assume that some of the memory looks as shown in the following table: Address Content Label Content Ox1A2B Initial Ox1A2C...
(a) Hexadecimal numbers are numbers in base 16. They use the following sixteen digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. They are widely used in com- puting, for example, to represent colors or network addresses of computers. i. Convert A2F1316 to decimal. Show your work. ii. Convert 456710 into hexadecimal. Show your work. iii. Convert 00010101100011002 to hexadecimal. Explain how can you use the fact that 16 = 24 ?...
O Complete the following table and answer the questions below: Instructions: Enter only whole numbers for your numeric answers. Units Consumed Total Utility Marginal Utility 1 10 10 At which rate is total utility increasing: a constant rate, a decreasing rate, or an increasing rate? How do you know? (Click to select)
Assembly Language NASM create a substring ASSIGNMENT INSTRUCTIONS: Create the Substring from the Given string, beginIndex and endIndex The program should create a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex – 1. Thus the length of the substring is endIndex-beginIndex. In other words you can say that beginIndex is inclusive and endIndex is exclusive while getting the substring. Initialize the following values in...