From: Christian Femers Date: Sat, 18 May 2019 16:18:48 +0000 (+0200) Subject: WireArrayEnd now created with U and GUITest supports U X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=ce16eaeef21bd9ac0b9ec1fc1016b5e9fc752ba8;p=Mograsim.git WireArrayEnd now created with U and GUITest supports U --- diff --git a/era.mi/src/era/mi/logic/tests/GUITest.java b/era.mi/src/era/mi/logic/tests/GUITest.java index 3fcb7a6b..28dd67af 100644 --- a/era.mi/src/era/mi/logic/tests/GUITest.java +++ b/era.mi/src/era/mi/logic/tests/GUITest.java @@ -240,6 +240,9 @@ public class GUITest extends JPanel case ZERO: g.setColor(Color.BLACK); break; + case U: + g.setColor(Color.MAGENTA); + break; default: throw new IllegalArgumentException(); } @@ -279,7 +282,7 @@ public class GUITest extends JPanel gt.repaint(12); try { - Thread.sleep(Math.max(16 - System.currentTimeMillis() + lastFrame, 0)); + Thread.sleep(Math.max(updateT - System.currentTimeMillis() + lastFrame, 0)); } catch (Exception e) { diff --git a/era.mi/src/era/mi/logic/wires/WireArray.java b/era.mi/src/era/mi/logic/wires/WireArray.java index 7599a98e..39af936e 100644 --- a/era.mi/src/era/mi/logic/wires/WireArray.java +++ b/era.mi/src/era/mi/logic/wires/WireArray.java @@ -257,7 +257,7 @@ public class WireArray private void initValues() { - inputValues = Bit.Z.makeArray(length); + inputValues = Bit.U.makeArray(length); } /**