Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing a self-modifying x86 factorial program. Parent comment
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
There are no comments on this comment yet.
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