COM (Ternary Gate): Difference between revisions
From T729 Balanced Ternary Computer
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
I do not know yet if this gate is useful to Compare say two registers. | I do not know yet if this gate is useful to Compare say two registers. | ||
This gate | This gate is biased towards the A input. Only when A is zero does B have any effect. | ||
== Truth Tables == | == Truth Tables == |
Revision as of 02:56, 7 June 2024
Compare
Uses
A tree of compares can compute if a register is negative, zero, or positive. This is done as part of the ALU Flags.
I do not know yet if this gate is useful to Compare say two registers.
This gate is biased towards the A input. Only when A is zero does B have any effect.
Truth Tables
COM | B | |||
- | 0 | + | ||
A | - | - | - | - |
0 | - | 0 | + | |
+ | + | + | + |
A | B | Y |
- | - | - |
- | 0 | - |
- | + | - |
0 | - | - |
0 | 0 | 0 |
0 | + | + |
+ | - | + |
+ | 0 | + |
+ | + | + |