Skip to content

Commit

Permalink
[bug]fixup output of tstate and P
Browse files Browse the repository at this point in the history
  • Loading branch information
BigEd committed Oct 5, 2010
1 parent 43f0603 commit f439d8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function readPstring(){
var result;
result = (isNodeHigh(nodenames['p7'])?'N':'n') +
(isNodeHigh(nodenames['p6'])?'V':'v') +
'-' +
'&#8209' + // non-breaking hyphen
(isNodeHigh(nodenames['p3'])?'B':'b') +
(isNodeHigh(nodenames['p3'])?'D':'d') +
(isNodeHigh(nodenames['p2'])?'I':'i') +
Expand Down Expand Up @@ -214,8 +214,7 @@ function busToString(busname){
if(busname=='p')
return readPstring();
if(busname=='tcstate')
return busToHex('clock1') + busToHex('clock2') +
busToHex('t2') + busToHex('t3') + busToHex('t4') + busToHex('t5');
return ['clock1','clock2','t2','t3','t4','t5'].map(busToHex).join("");
return busToHex(busname);
}

Expand Down

0 comments on commit f439d8f

Please sign in to comment.