2 Consider the following variable declarations: .data var1 DWORD ? var2 BYTE ? If "OFFSET var1" returns the value of "00CB4000", what will "OFFSET var2" return?
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
2
Consider the following variable declarations:
.datavar1 DWORD ?
var2 BYTE ?
If "OFFSET var1" returns the value of "00CB4000", what will "OFFSET var2" return?
If we have an array defined like this:
array word 5 dup(6)What value would the expression "LENGTHOF array" return?
Consider the following code snippet:
.datamyVar byte 4, 8, 5, 7
.code
mov esi, offset myVar
add esi, 2
What is the value at the memory location esi is pointing to? In other words, what value is referenced by [esi]?
6
Consider the following code snippet:
.data
myArray word 01F2h, 1111h, 0ABDh, AAAAh
.code
mov ebx, offset myArray
add ebx, 2
What is the value at the memory location ebx is pointing to? In other words, what value is referenced by [ebx]?
7
Consider the following code:
.dataarray word 1, 2, 3, 4, 5
.code
mov eax, offset array
mov ecx, lengthof array
loopstart:
add byte ptr [eax], 1
add eax, 2
loop loopstart
What are the values in the array after this code is finished executing?
In the following code, use the dropdowns select the correct values of the register al at different points during the program. (Note: ignore the extra spaces inside of the brackets, they have to be there for the dropdowns to work correctly)
.databyteArray BYTE 1, 2, 3, 4, 5, 6
.code
mov esi, OFFSET byteArray
add esi, 3
mov al, [esi ] ; al = ????Answer??????
sub esi, 2
mov al, [esi ] ; al = ???Answer???????
Trending now
This is a popular solution!
Step by step
Solved in 3 steps