projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added MSB first versions of parse() and toString()
[Mograsim.git]
/
net.mograsim.logic.ui
/
src
/
net
/
mograsim
/
logic
/
ui
/
LogicUICanvas.java
diff --git
a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUICanvas.java
b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUICanvas.java
index
73c1f06
..
2974278
100644
(file)
--- a/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUICanvas.java
+++ b/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/LogicUICanvas.java
@@
-122,7
+122,7
@@
public class LogicUICanvas extends ZoomableCanvas
if (radioBit.getSelection())
value = Bit.parse(valueString);
else if (radioBitVector.getSelection())
if (radioBit.getSelection())
value = Bit.parse(valueString);
else if (radioBitVector.getSelection())
- value = BitVector.parse
(new StringBuilder(valueString).reverse().toString()
);
+ value = BitVector.parse
MSBFirst(valueString
);
else
throw new RuntimeException("No value type selected");
target.setHighLevelState(stateIDText.getText(), value);
else
throw new RuntimeException("No value type selected");
target.setHighLevelState(stateIDText.getText(), value);