mirror of
https://github.com/mist64/perfect6502.git
synced 2025-01-15 04:29:49 +00:00
get rid of transistor names
This commit is contained in:
parent
fe86830b09
commit
fc74db2741
7020
js/transdefs.js
7020
js/transdefs.js
File diff suppressed because it is too large
Load Diff
17
js/wires.js
17
js/wires.js
@ -64,15 +64,14 @@ function setupNodes(){
|
||||
function setupTransistors(){
|
||||
for(i in transdefs){
|
||||
var tdef = transdefs[i];
|
||||
var name = tdef[0];
|
||||
var gate = tdef[1];
|
||||
var c1 = tdef[2];
|
||||
var c2 = tdef[3];
|
||||
var trans = {name: name, on: false, gate: gate, c1: c1, c2: c2};
|
||||
nodes[gate].gates.push(name);
|
||||
nodes[c1].c1c2s.push(name);
|
||||
nodes[c2].c1c2s.push(name);
|
||||
transistors[name] = trans;
|
||||
var gate = tdef[0];
|
||||
var c1 = tdef[1];
|
||||
var c2 = tdef[2];
|
||||
var trans = {name: i, on: false, gate: gate, c1: c1, c2: c2};
|
||||
nodes[gate].gates.push(i);
|
||||
nodes[c1].c1c2s.push(i);
|
||||
nodes[c2].c1c2s.push(i);
|
||||
transistors[i] = trans;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user