CS211 Computer Architecture 3 What is the smallest positive number that can be

Cs211 computer architecture 3 what is the smallest

This preview shows page 2 - 4 out of 4 pages.

CS211 Computer Architecture 3. What is the smallest positive number that can be represented, by normalized value, in IEEE754 standard. What is the largest positive number that can be represented by denormalized value?C) Assembly Programming1.Explain: in Assembly Programming, when a procedure is about to return, how to “clear the stack” with a single instruction?2. Consider you have a structure with two fields:struct node{int value;struct node * next;};...ptr = (struct node *)malloc(...);ptr->value = 40;ptr->next = NULL;The variable ptr is a pointer to a node and is resident in register %eax. What do the following operations do?a) mov (%eax);%ebx– Explain the operation with respect to C code above– What will be value of %ebxb) mov 4(%eax);%eax.– Explain the operation with respect to C code above– What will be the value of %eax after the operation3. Are the following operations legal? If no, why?(a) mov (%eax), %ecx(b) mov 0x8(%eax), (%ebp):(c) mov 0x80(%eax, %ebx, %ecx), %edx4. Explain what “RET” instruction is supposed to do in detail5. Provide an equivalent assembly code for the following instruction xorl %eax, %eax
Image of page 2
CS211 Computer Architecture
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture