COM (Ternary Gate): Difference between revisions
From T729 Balanced Ternary Computer
Jump to navigationJump to search
(Created page with "<big><b>Compare</b></big> == Uses == A tree of compares can calculate down if a register is negative, zero, or positive. This is done as part of the ALU Flags. I do not know yet if it is useful to Compare say two registers. == Truth Tables == <div class="tt"> <table class="tt"> <tr> <td class="tt_br tt_bb" colspan="2" rowspan="2">COM</td> <td colspan="3" class="tce"><b>B</b></td> </tr> <tr> <td class="tt_r tt_bb">-</td> <td class="tt_g tt_bb">0</td>...") |
No edit summary |
||
Line 2: | Line 2: | ||
== Uses == | == Uses == | ||
A tree of compares can | 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 | I do not know yet if this gate is useful to Compare say two registers. | ||
== Truth Tables == | == Truth Tables == |
Revision as of 03:57, 5 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.
Truth Tables
COM | B | |||
- | 0 | + | ||
A | - | - | - | - |
0 | - | 0 | + | |
+ | + | + | + |
A | B | Y |
- | - | - |
- | 0 | - |
- | + | - |
0 | - | - |
0 | 0 | 0 |
0 | + | + |
+ | - | + |
+ | 0 | + |
+ | + | + |