by unnouinceput · 4y ago · 0 comments
It's for me, because you can definitely do one less loop by modifying:
cmp ebx, 0
to
cmp ebx, 1
Init: EBX = 2; EAX = 2;
Loop: EBX = 1;//gets decremented
CMP EBX, 1;//it's 1 so we exit
Final result is 2. Sounds the edge case is not that of an edge after all