Describe World : Play with bits in byte
Play with bits in byte
| And | ||||||||
|---|---|---|---|---|---|---|---|---|
| Selected byte: | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| Test byte: | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
| Result AND: | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| Or | ||||||||
|---|---|---|---|---|---|---|---|---|
| Selected byte: | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| Test byte: | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
| Result OR: | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 |
| XOr | ||||||||
|---|---|---|---|---|---|---|---|---|
| Selected byte: | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| Test byte: | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
| Result OR: | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| Test | ||||||||
|---|---|---|---|---|---|---|---|---|
| Byte set(Value: 255): | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| Byte re-set by(Value: 110): | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 |
| Test Live | ||||||||
|---|---|---|---|---|---|---|---|---|
| Selected byte(Value: 3): | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
| Switch bit (Value: 2): | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 |






