Reference no: EM133216840
1. On a little endian machine, if the byte at address 1000 contains 59 and the byte at 1001 contains 63, what hex value is represented by the word (two-bytes) starting at address 1000?
2. a. What is the largest number that can be stored in six bits if the data is unsigned?
b. What is the largest number that can be stored in sever bits if the data is signed?
3. a. Convert 3A hex to binary. Convert 8A hex to decimal. Convert 197 decimal to hex.
b. The two's complement number F3 is stored in 8 bits (one sign bit, 7 data bits.) Convert this number to a signed decimal number.
c. Convert the floating point number 72.75 to its 32-bit representation.
4. If I look at the data in ax (using, for example p $ax in the debigger), could I find 0A45 there?
5. Suppose the value in ebx is A37289E1. What's in bx? What's in bh? What's in bl?
6. a. In the instruction movl $10, %eax, which mode is %eax in?
b. In the instruction movb $10, (%eax), which mode is (%eax) in?
c. In the instruction movl $10,8( %ebp), which mode is 8(%ebp) in?
7. What does the instruction pushl %eax do? What does the instruction popl %edx do?
8. a. eax contains 03F2. ebx contains 0075. What is in ebx after the instruction and %eax, %ebx executes?
b. Give an 8 bit mask to set bits 0, 1, 2. Do not disturb any other bits.
c. Give an 8 bit mask to clear bits 0, 2, 4. Do not disturb any other bits.
d. Give an 8 bit mask to select (copy) bits 0, 4, 7 from eax to ebx and clear the other bits.
9. a. If dx contains 1 and ax contains 22, what's in dx:ax? You can give this answer in decimal or hex.
b. After the command div 10 is executed, what's in ax? What's in dx?
10. Suppose ax contains 20 and bx contains 10. After the command mul bx executes, what's in ax?
What's in dx?