Question
2. For each following, assume the Before values when the given instruction is executed. Give the requested After values. Notes: MOVZX adds leading zeroes (0)
2. For each following, assume the Before values when the given instruction is executed. Give the requested After values. Notes: MOVZX adds leading zeroes (0) to fill up the destination storage MOVSX adds copies of the sign in the source storage as leading values to fill up the destination storage. XCHG: exchanges the values of the given pair of storage locations. The Status Flags are set according to the result obtained: ZF: zero flag, SF: sign flag, OF: overflow flag, PF: parity flag e); Before: RAX: 0A0A 0A0A 0A0A 0A0AH; RDX: 1515 1515 1515 1515H XCHG EAX, EDX ; After: RAX, EAX, R15, RDX f); Before: EBX: FFFF FF95H; ECX: 0000 01B2H ADD EBX, ECX ; After: EBX, ECX, SF, ZF, CF, OF g); Before: BX: FF95H; CX: 02A2H SUB CX, BX ; After: BX, CX, SF, ZF, CF, OF h); Before: CX: 031BH INC CX INC CL DEC CX ; After: CX, SF, ZF i); Before: ESI: FFFF FFFFH DEC ESI ; After: ESI, SF, ZF j); Before: RDX: FFFF FFFCH NEG RDX ; After: RDX, EDX, SF, ZF.
please do from e to j and show all work.Thank You
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