Question

Consider the following data segment .data array1 WORD 10 DUP(?),0,0 array2 DWORD 4 DUP(3 DUP(?)) What...

Consider the following data segment .data array1 WORD 10 DUP(?),0,0 array2 DWORD 4 DUP(3 DUP(?)) What decimal value the instruction : mov EBX , SIZEOF array2 stores in EBX. Show your work for full credit.

Homework Answers

Answer #1

The following instruction array2 DWORD 4 DUP(3 DUP(?) declares array of unsigned integers each of length 32-bits or 4 bytes.

The SIZEOF operator returns a value that is equivalent to multiplying value returned by LENGTHOF by Type

The LENGTHOF operator returns the number of elements in a single data declaration. In our example LENGTHOF will return 12 because there are total 12 DWORDS in the array. Because of two DUP operators internal DUP create three DWORDs and the external DUP repeats these three DWORDS 4 times therefore 12 DWORDS in total.

Since Type in our example is DWORD and each DWORD is of 4 bytes thus SIZEOF operator will return 12*4 i.e 48

Therefore the instruction : mov EBX , SIZEOF array2 stores the decimal value of 48 in EBX.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A) Is the code below secure? Explain your rationale. ExitProcess PROTO .data firstval qword 20002000h secondval...
A) Is the code below secure? Explain your rationale. ExitProcess PROTO .data firstval qword 20002000h secondval qword 11111111h thirdval qword 22222222h sum qword 0 .code main proc      mov rax,firstval                         add rax,secondval             add    rax,thirdval      mov    sum,rax      mov    ecx,0      invoke ExitProcess main endp end main b) Transmitted messages often include a parity bit, whose value is combined with a data byte to produce an even number of 1 bits. Suppose a message byte in the AL...
Consider the following sample data set: 1 2 3 4 4 5 1. What is the...
Consider the following sample data set: 1 2 3 4 4 5 1. What is the mode? 2. What is the median? 3. What is the mean? 4. What is the sample standard deviation? Interpret it? Show your algebra. 5. Find the IQR and find if there is any outlier?
At what age do infants speak their first word of English? Here are the data on...
At what age do infants speak their first word of English? Here are the data on 20 normal children (ages in months). Assume that the distribution of the age at which all children speak their first word (the population) is normal. 15 14 10 9 15 20 18 11 8 11 11 9 10 11 11 10 12 17 11 10 a) First, create a histogram of the data above using StatCrunch and include and attach it to your exam....
Write a sequence of two instructions that copies bits 0-5 from AL to bits 0-5 in...
Write a sequence of two instructions that copies bits 0-5 from AL to bits 0-5 in BL. Bits 6-7 in BL should be cleared, and AL should be unchanged             Mov al, bl       And 00111111, bl       Write a sequence of two instructions that copies the integer in bits 4-7 from AL register into bits 0-3 of the BL register. Upper 4 bits of AL and BL will be cleared             Shr al, 4       Mov bl,...
Consider these data sets: I: 1, 3, 2, 2, 5, 4, 4, 3, 3 II: 1,...
Consider these data sets: I: 1, 3, 2, 2, 5, 4, 4, 3, 3 II: 1, 2, 4, 1, 2, 5, 2, 5, 1, 5, 5, 3 (a) Find the mean and median for each set. Show your work. (b) Find variance and standard deviation for each set. Show your work. (c) Would you be surprised to hear someone claim that these data were drawn from the same population? (Hint: Draw a histogram for each set. Compare the shapes.)
In this word problem you will be given a sample of data from a normal population...
In this word problem you will be given a sample of data from a normal population along with a confidence level. It is your project to define what variable that sample data represents, and what the population is that your t-Interval will make an inference on. Given the following data, create your own word problem and answer the following questions. (1-6) Sample data: 1.3, 1.7, 1.7, 2.0, 2.3, 2.3, 2.7, 3.0, 3.0, 3.0, 3.3, 3.3, 3.7, 3.7, 4, 4 Confidence...
Consider the following pseudocode segment. x ← 3 for i  {1, 2,   , n} do      for j  {1,...
Consider the following pseudocode segment. x ← 3 for i  {1, 2,   , n} do      for j  {1, 2,   , n} do      x ← x + 5      for k  {1, 2, 3, 4, 5} do      x ← x + k + 1 What is the value of x after this segment runs?
Consider the following time series data. t 1 2 3 4 5 Yt 7 12 10...
Consider the following time series data. t 1 2 3 4 5 Yt 7 12 10 13 16 Develop the linear trend equation for this time series (to 1 decimal). Tt = _____ + _____t What is the forecast for t = 6 (to 1 decimal)?
Consider the following time series data. Week 1 2 3 4 5 6 Value 18 14...
Consider the following time series data. Week 1 2 3 4 5 6 Value 18 14 16 12 17 14 Using the naive method (most recent value) as the forecast for the next week, compute the following measures of forecast accuracy. Round the intermediate calculations to two decimal places. Mean absolute error (to 1 decimal). Mean squared error (to 1 decimal). Mean absolute percentage error (to 2 decimals). % What is the forecast for week 7 (to the nearest whole...
Consider the following data: X Y 1 13 3 10 5 9 5 5 6 3...
Consider the following data: X Y 1 13 3 10 5 9 5 5 6 3 Draw a Scatter Plot of the data. Do you believe the correlation coefficient r will be positive, negative or close to zero? Why What is your estimate to the value of Y associated with X=4?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT