diff --git a/src/main/dig/processor/IO/Keyboard.dig b/src/main/dig/processor/IO/Keyboard.dig new file mode 100644 index 000000000..658a38422 --- /dev/null +++ b/src/main/dig/processor/IO/Keyboard.dig @@ -0,0 +1,157 @@ + + + 1 + + + + Keyboard + + + + + Out + + + Label + D + + + Bits + 16 + + + + + + In + + + Description + address {{de Adressbus}} + + + Label + A + + + Bits + 16 + + + + + + Comparator + + + Bits + 16 + + + + + + Const + + + Value + 30 + + + Bits + 16 + + + + + + And + + + + + Clock + + + Label + C + + + + + + In + + + Description + Read Enable {{de Lesefreigabe}} + + + Label + R + + + + + + Out + + + Label + intr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/java/de/neemann/digital/integration/TestExamples.java b/src/test/java/de/neemann/digital/integration/TestExamples.java index 9934596e5..3feff5ab2 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -32,7 +32,7 @@ public class TestExamples extends TestCase { */ public void testDistExamples() throws Exception { File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig"); - assertEquals(247, new FileScanner(this::check).scan(examples)); + assertEquals(248, new FileScanner(this::check).scan(examples)); assertEquals(170, testCasesInFiles); }