Question: 4. [50 Points] Using the Intel Instruction Architecture Manual, assemble the following in- structions by hand and show your work. You must use the
![4. [50 Points] Using the Intel Instruction Architecture Manual, assemble the following](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/02/65c21def7d532_46365c21def5af47.jpg)
4. [50 Points] Using the Intel Instruction Architecture Manual, assemble the following in- structions by hand and show your work. You must use the chosen opcode and break down any MODR/M bytes with appropriate operands. Simply stating the opcode will not suffice. [4 Points For Each Opcode Encoding] pop pop pop add push retn edx ecx eax ecx, eax edx ; Use opcode 0x8F /0 ; Use opcode 0x8F /0 ; Use opcode 0x58 ; Use opcode 0x03 ; Use opcode 0xFF /6 ; 'Near' return (a) [6 Points] Explain line-by-line what the function is doing. (b) [5 Points] How many arguments does this function take and why? [Hint: What is the top value on the stack upon entry to this function?] (c) [5 Points] Which register is being used as a return value (not the return address)? (d) [10 Points] Consider the following code and hexadecimal representations. Which is the correct representation and why? xor eax, 0x55667788 i) 81 FO 55 66 77 88 ii) 35 88 77 66 55 iii) 81 30 88 77 66 55 iv) 81 70 00 88 77 66 55 v) None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
