Difference between revisions of "Hazzard/Logic"
From #openttdcoop wiki
Line 5: | Line 5: | ||
=== NOT Gate === | === NOT Gate === | ||
[[File:haz_not.png|thumb|10000px|left|A NOT gate]] | [[File:haz_not.png|thumb|10000px|left|A NOT gate]] | ||
− | {|class="wikitable" | + | {|class="wikitable" style="text-align:center;" |
!Input | !Input | ||
!Output | !Output | ||
Line 17: | Line 17: | ||
|1 | |1 | ||
|0 | |0 | ||
+ | |} | ||
+ | === AND Gate === | ||
+ | [[File:haz_and.png|thumb|10000px|left|An AND gate]] | ||
+ | {|class="wikitable" style="text-align:center;" | ||
+ | !colspan="2"|Input | ||
+ | !Output | ||
+ | |- | ||
+ | !A | ||
+ | !B | ||
+ | !O | ||
+ | |- | ||
+ | |0 | ||
+ | |0 | ||
+ | |0 | ||
+ | |- | ||
+ | |0 | ||
+ | |1 | ||
+ | |0 | ||
+ | |- | ||
+ | |1 | ||
+ | |0 | ||
+ | |0 | ||
+ | |- | ||
+ | |1 | ||
+ | |1 | ||
+ | |1 | ||
|} | |} |
Revision as of 06:08, 26 February 2014
See also: Logic
Gates
NOT Gate
Input | Output |
---|---|
A | O |
0 | 1 |
1 | 0 |
AND Gate
Input | Output | |
---|---|---|
A | B | O |
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |