From f439d8fc8d02b5a6cb6b0b5985ea356cc33ca6d1 Mon Sep 17 00:00:00 2001 From: BigEd Date: Tue, 5 Oct 2010 18:12:44 +0000 Subject: [PATCH] [bug]fixup output of tstate and P --- macros.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/macros.js b/macros.js index 9996c43..7fb3c6e 100644 --- a/macros.js +++ b/macros.js @@ -179,7 +179,7 @@ function readPstring(){ var result; result = (isNodeHigh(nodenames['p7'])?'N':'n') + (isNodeHigh(nodenames['p6'])?'V':'v') + - '-' + + '‑' + // non-breaking hyphen (isNodeHigh(nodenames['p3'])?'B':'b') + (isNodeHigh(nodenames['p3'])?'D':'d') + (isNodeHigh(nodenames['p2'])?'I':'i') + @@ -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); }