Shaos-Test Jem
/* Your Ternary computer 3niti (see http://www.3niti.org for details) * Copyright (C) 2004-2023, Alexander A. Shabarshin <me@shaos.net> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. */
alf T=Z,N,O,P "Ternary alphabet for hardware implementation" /* Z - unplugged N - negative (-1 ) O - ground ( 0 ) P - positive (+1 ) */
def SPN TT:T "v1.0 Switch P-off N-on" NN:N NP:Z ON:O OP:Z PN:P PP:Z ZN:Z ZP:Z end
sch test "Test" >T i1 3,3 >T i2 3,5 +SPN obj 5,5 i1 i2 +SPN obj2 9,5 obj i1 +SPN obj3 7,5 obj obj2 <T o1 10,3 obj <T o2 10,5 i2 <T o3 10,7 obj2 end
/* List of ALL authors of "Project 3niti": [[Users/Shaos]] - Alexander A. Shabarshin (California, US) Contacts: me@shaos.net, http://www.shaos.net */