Reference no: EM13167765
1. Given the following array definition, write a constant declaration named ArraySize that automatically calculates the size in bytes, of the array:
newArray DWORD 10,20,30,40,50
2. Which of the following will generate assembly errors?
a. var1 BYTE 1101b, 22, 35
b. var2 BYTE "ABCDE",18
c. var3 BYTE '
,'98778',
d. var4 BYTE 256,19,40
3. Use the following data definitions for the parts below:
byte1 BYTE 0FFh,1,2
byte2 BYTE 14h
word1 WORD 0FFFFh,1,2
word2 WORD 3
word3 SWORD 7FFFh,8000h
a. Write one or more statements that move the contents of word1 to word2.
b. For each of the following instructions, indicate whether it is legal (L) or illegal (I):
mov byte2,0FFh
mov word1,byte2
mov word2,10000h
mov si,word1
movzx ax,byte1
movzx edx,bl
movzx word2,al
movsx dl,al
c. Assume that the code below is part of an assembly program. Indicate the hexadecimal value of the destination operand next to each instruction. Use the letter I to indicate that a particular instruction is illegal.
mov dx,word3
movsx eax,byte1
mov dh,al
mov bx,dx
Sdlc and the role of analysis and design
: In this unit, you have examined phases of the SDLC and the role of analysis and design in the overall process. A question remains, however, about the analysis and design. What methodology or approach should you use? One common methodology is the ..
|
Create an output array using input x values 1 through 10
: The function is y=(x)/(sqrt(x)), create an output array using input x values 1 through 10. I can't seem to get this to work for some reason...
|
Who has the most money in their account at age 70
: Assuming both retire at 70, and that the interest rate both get on their investments is 10% (compounded annually) who has the most money in their account at age 70? Explain why you pick the answer you pick.
|
Implement the backend for a list
: Using an array to implement the backend for a list, create a list class that can contain integers and implements all of the following funtionality via the following functions:List() - the constructor List (const List& 1) - a copy constructor
|
Write a constant declaration named arraysize
: Given the following array definition, write a constant declaration named ArraySize that automatically calculates the size in bytes, of the array
|
What is the boiling point elevation
: What is the boiling point elevation and boiling point of a solution that contains 1.20 moles of non-ionic solute in 800.0 g of H2O?
|
Determine the selling price of the house
: Write and solve an equation to determine the selling price of the house. Jamie sold her house for x dollars. The real estate agent received a 5% commission and Jamie received $197,125.
|
What is the concentration of na ions in the final solution
: if 100 mL of 0.800 M Na2SO4 is added to 200 mL of 1.20 M NaCl, what is the concentration of Na ions in the final solution?
|
Structured and object-oriented designs
: Structured and object-oriented designs are the two main contenders for programming methodologies relevant to the creation of documentation for application programs. The choice of methodologies will greatly affect how we approach the challenge and ..
|