Quantcast
Channel: intel-Based Assembly Language idiv - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by João Monteiro for intel-Based Assembly Language idiv

The result is consistent with your use of the stack.The first three "push" of your code, leave the stack as1000000001000000001869375819 (corresponding to string "Kilobytes: %d..." of your data.When...

View Article



Answer by johnfound for intel-Based Assembly Language idiv

About the divisionAt first, for the goal you need (computing MBytes and KBytes) you need unsigned devision actually. So, use div instruction instead of idiv.Second, div and idiv actually divide 64bit...

View Article

Image may be NSFW.
Clik here to view.

Answer by Leeor for intel-Based Assembly Language idiv

You need to initialize EDX - either zero it (xor edx, edx) and use unsigned operations, or sign extend EAX into it (cdq)IDIV does as follows (link):Divides (signed) the value in the AX, DX:AX, or...

View Article

intel-Based Assembly Language idiv

I'm trying to get idiv working properly and I've read you put what you want to dividesuch as 25 and then in ebx you put what you want to divide by such as 5 then you doidiv ebxwhich then puts EAX = 5...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images