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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started