It is necessary to divide by 10 without DIV (IDIV) and without MUL (IMUL). And without FPU / SSE, naturally ... How can this be done? ps Moreover, so that the balance was also. Although it can be calculated by the difference.
- oneSubtracting from the original number 10 in the cycle will not work? - insolor
- courses.engr.illinois.edu/ece390/books/artofasm/CH09/… - ф
- @Arhad, there is division by multiplication. Although you can certainly pervert and multiply by 6554 through lea, but this is somehow too much in my opinion) - insolor
- oneIn answer to the question “ Replace substitution with displacement (shift) ” @Harry gives an example of division by 10. - ߊߚߤߘ
- 2Possible duplicate question: Substitute division by offset (shift) - user194374
|