1)What will be the value in EDX after each of the lines marked (a) and (b) execute?...
Question:
1)What will be the value in EDX after each of the lines marked (a) and (b) execute? .data one WORD 0A629h two WORD 0B573h .code mov edx, 76498218h movzx edx, one ; (a) EDX= movsx edx, two ; (b) EDX=
2) What will be the value in EAX after the following lines execute? mov eax, 3648FEFFh inc ax ; EAX=
3) What will be the value in EAX after the following lines execute? mov eax, 7452E000h dec ax ;EAX=
4)What will be the value in EAX after the following lines execute? mov eax, 3521ACFDh neg ax ; EAX=
Question 2: (10 Marks) Implement the following expression in assembly language: EAX = (valDW1+valDW2) EBX. Assume that valDW1 and valDW2 are 32-bit integer variables.
Question 3: (10 Marks) Suppose MASM contained no POP instruction. Write a sequence of two other instructions (32-bit mode) that would accomplish the same as pop EAX.