Question: I need to write a code for in-line assembly x86, that multiply a 32-bit integer with number 2017 without using mul/imul instructions. I know I

I need to write a code for in-line assembly x86, that multiply a 32-bit integer with number "2017" without using mul/imul instructions. I know I need to use shl and shr bit instructions but I have a problem to get the exact number "2017" from those instructions. Can anyone give some exact codes to implement this specific multiplication?

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!