test edx,edxinstruction, I am using the JNS (jump not sign) to determine if
if(remainder & (1 << 31)was 'successful'. This seems to me to be a very strange way of doing things, but I disassembled the program I am basing this one off of, and that was what the compiler generated. However, just to make sure, I manually did
test remainder, 80000000h. However, the amount of times it would pass through the jump changed almost every time the program was run. The results are always close to each other, and are usually off by 1-5. On a side note, on smaller files, it is never off. Please help me find and eradicate this annoying bug.
The rest of my code is located here: http://pastebin.com/NKheU0Bt
(I am aware it is a mess)