mschwartz / assembly-tutorial

Programming in assembly language tutorial
619 stars 46 forks source link

off-by-one problem #9

Closed snakeru closed 11 months ago

snakeru commented 11 months ago

There are two off-by-one bugs at the end of "Boolean Algebra" section:

A great use of the AND operator is to do a modulo of a number to a power of 2. For example, AND with 3 gets you a result between 0 and 2. AND with 7 gets you a result between 0 and 8.

mschwartz commented 11 months ago

Pull request is welcomed!

snakeru commented 11 months ago

Apparently GitHub allows web-only PR creation. There you go:

https://github.com/mschwartz/assembly-tutorial/pull/10