News for hackers. Stuff that matters.
Re:Subtraction is not comparison by userbinator on Friday December 26, 2014 @08:53AM (#8798822)
Because that overflag makes all the difference (no pun intended), I wouldn't say that they are the same, but that comparison usually involves subtraction.

I remember coming across a set of lecture slides for a CS course on architecture that used its own toy architecture with neither flags nor separate comparison instructions - saying that comparison is the same as subtraction gives people the entirely wrong idea, and leads to the sort of bugs mentioned in this article.

There are no comments on this comment yet.