Question: nibbleswap function x86 assembly How can I do this? Local Windows Debugger (Global Scope) nibbleSwap(int x, int r) PART 2 A nibble is a four-bit

nibbleswap function x86 assembly

nibbleswap function x86 assembly How can I do this? Local Windows Debugger

How can I do this?

Local Windows Debugger (Global Scope) nibbleSwap(int x, int r) PART 2 A nibble is a four-bit aggregation, or half an octet. There are two nibbles in a byte Given a 4-byte number,x and a rotation amount, r. Rotate the 4 most significant nibbles of x (which are the 2 most significant bytes of x) according to r.You are NOT allowed to use loops. You are NOT allowed to use any version of the MUL or DIV instructions Implementation details: The two input integers are stored in registers EBX and ESI. You need to store the answer into register EAX. As usual, you are allowed to use (and reuse) any registers except EBP and ESP Dint nibbleSwap(int x, int r) int output asm xor eax, eax mov ebx, x mov esi, r IYOUR CODE STARTS HERE / YOUR CODE ENDS HERE t from: Build

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!