Linux x64 Assembly Tutorial 5: Boolean Bitwise Instructions @WhatsACreel
Linux x64 Assembly Tutorial 5: Boolean Bitwise Instructions  @WhatsACreel
Uploaded June 2014 | Updated September 2026, 2 weeks ago
The Boolean instructions are AND, OR, XOR and NOT. They work on the bits of their parameters and perform some logical comparison of the bits of the input operands. They return some predefined values depending on the 1's and 0's in the inputs. Boolean operations in computers are usually performed between all the corresponding pairs of bits in the input operands, and for this reason, they are sometimes called bitwise operations.

They might seem simple, but it's amazing to see what billions of them can do!

I said in the tute that they were used to create "if" statements, but that's not usually true. They can be used to create complex conditions, but more often than not, C++ will use branching, even though it would usually be faster to use Boolean instructions and conditional moves.
Linux x64 Assembly Tutorial 5: Boolean Bitwise InstructionsModern x64 Assembly 11: Division with the DIV and IDIV InstructionsModern x64 Assembly 8: Shift, Rotate and Bit Manipulation InstructionsC++ Tutorial 18: Function OverloadingModern x64 Assembly 10: Conditional Jumps, Moves and Set Bytex64 Assembly Tutorial 58: Intro to AVXModern x64 Assembly 9: The rFlags Register (Flags, pushfq, popfq, pushf, popf)C++ Function Pointers 1: IntroductionGodbolt Compiler Explorer Adventuresx64 Assembly MultiThreading 2: Race Conditions and Atomic InstructionsLinux x64 Assembly Tutorial 3: Bits, Bytes and Registers
Creel |

Linux x64 Assembly Tutorial 5: Boolean Bitwise Instructions

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER