View Single Post
Old Mar 31st, 2006, 5:25 PM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Sure. It jumps to 'setcount' if there's a carry, and falls through to 'setcount' if there's no carry. The result is to count, regardless. I recommend that you make a flowchart from your code and analyze it. For instructions like "loop", be sure and break them into their entire function. "loop", for instance, would be, "decrement ecx", "test ecx", and "jnz label operand".
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote