1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-06-11 16:29:29 +00:00

get rid of transistor names

This commit is contained in:
Michael Steil 2010-09-21 06:10:57 +00:00
parent fe86830b09
commit fc74db2741
2 changed files with 3518 additions and 3519 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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;
}
}