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 |
Is this right? 15. Complete the following table in hexadecimal numbers only: INSTRUCTION
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
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
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...
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
27. For lO computer interface function outb(0xB6, 0x43), which register to hold Ox43? (a) AL (c) DX (d) AX (b) BL 28. Suppose memory variable j is 32-bit. After executing the following instructions int j 0X20AB int *Ptr asmi MOV EAX, Ptr; MOV EBX, [EAX] ADD EBX, 1; Which of the following statements is true? (b) EBX hold 0x20AC in hexadecimal (d) EAX hold 0x20AC in hexadecimal (a) EBX hold 0x20AB in hexadecimal (c) EAX hold Ox20AB in hexadecimal 29....
#6 please a-f Assignment 1 List the binary, octal and hexadecimal numbers from 32 to 64 2 What is the exact number of bytes in a system that contains (a) 64K bytes, (b) 128M bytes, and (c) 32G bytes? 3 Convert the following numbers with the indicated bases to decimal and binary (a) (2305)s (b) (248)12 (c) (125)s (d) (371) 4 What is the largest binary number that can be expressed with 16 bits? What are the equivalent decimal and...
13. In 32-bit mode, if EBX is holding 0x004105BC, answer the following questions: a. How many bytes can the register EBX hold? b. How many bits can the register EBX hold? c. What is the hexadecimal value in the register BX? d. What is the hexadecimal value in the register BL?_ e. What is the hexadecimal value in the register BH? 14. In an 8-bit register, will 01111111 +00000001 cause the Carry Flag to set? Show the calculated result and...
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...
Write a program that reads in two hexadecimal numbers from a file, hex.dat, and prints out the sum of the two numbers in hexadecimal. (As noted in class, first do this without using a file and by reading using the cin > > command) From Wikipedia: "In mathematics and computer science, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0-9 to...
Assume that the following marginal costs exist in catfish production: Instructions: Complete the table below. If you are entering any negative numbers be sure to include a negative sign (-) in front of those numbers. Quantity produced (units per day) 10 11 12 13 14 15 16 Marginal cost (per unit) $4 6 8 10 12 14 16 Price (per unit) - $25 24 23 22 - 21 - 20 19 - 18 Quantity demanded (units per day) 10 11...