Operation | Result | Flag | Description |
---|---|---|---|
000 | Nibble1 + Nibble2 | Carry = Overflow | Addition |
001 | | Nibble1 - Nibble2 | | 1 if Nibble2 > Nibble1, 0 otherwise | Test / diff |
010 | Nibble1 AND Nibble2 | 0 | Bitwise AND |
011 | Nibble1 OR Nibble2 | 0 | Bitwise OR |
100 | Nibble1 XOR Nibble2 | 0 | Bitwise XOR |
101 | 15 - Nibble1 | 0 | Bitwise inverse of Nibble1 |
110 | 15 - Nibble2 | 0 | Bitwise inverse of Nibble2 |
111 | Nibble1 + Nibble2 + 1 | Carry = Overflow | Addition |