On the Subject of Bitwise Operations
Nobody’s favorite kind of math. Who even likes math, anyway?
- Use the two bytes obtained from the tables below, and the operator from the display, to determine the answer.
| Byte 1 | Byte 2 |
|---|---|
| No AA Batteries | ≥ 1 D battery |
| Parallel port | ≥ 3 ports |
| Lit NSA | ≥ 2 battery holders |
| # Of modules > Starting time | Lit BOB |
| ≥ 2 Lit Indicators | ≥ 2 unlit indicators |
| Modules ÷ 3 | Last SN digit is odd |
| ≤ 1 D battery | Even # of modules |
| ≤ 3 ports | ≥ 2 batteries |
This module includes needy modules when it refers to the number of modules.
Here is a table of explanations of each bitwise operator:
| Info | AND | OR | XOR | NOT |
|---|---|---|---|---|
| HOW | B1 correct + B2 correct = 1, otherwise 0. | B1 correct OR B2 correct = 1, otherwise 0. | EXACTLY 1 Byte correct = 1, otherwise 0. | Ignore B2. B1 correct = 0, otherwise 1. |
(Bytes are referred to as “B1” and “B2” respectively.)