|
@@ -195,6 +195,78 @@ class TestSingleMnemonics {
|
|
assertEquals(0x7d, mno.getByte());
|
|
assertEquals(0x7d, mno.getByte());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Test
|
|
|
|
+ void testSKIP0() throws SyntaxError {
|
|
|
|
+ SKIP0 mno = new SKIP0("SKIP0");
|
|
|
|
+ assertEquals(0xc0, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testAGTB() throws SyntaxError {
|
|
|
|
+ AGTB mno = new AGTB("AGTB");
|
|
|
|
+ assertEquals(0xc1, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testALTB() throws SyntaxError {
|
|
|
|
+ ALTB mno = new ALTB("ALTB");
|
|
|
|
+ assertEquals(0xc2, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testAEQB() throws SyntaxError {
|
|
|
|
+ AEQB mno = new AEQB("AEQB");
|
|
|
|
+ assertEquals(0xc3, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testPRG0() throws SyntaxError {
|
|
|
|
+ PRG0 mno = new PRG0("PRG0");
|
|
|
|
+ assertEquals(0xcc, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testPRG1() throws SyntaxError {
|
|
|
|
+ PRG1 mno = new PRG1("PRG1");
|
|
|
|
+ assertEquals(0xce, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testSEL0() throws SyntaxError {
|
|
|
|
+ SEL0 mno = new SEL0("SEL0");
|
|
|
|
+ assertEquals(0xcd, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testSEL1() throws SyntaxError {
|
|
|
|
+ SEL1 mno = new SEL1("SEL1");
|
|
|
|
+ assertEquals(0xcf, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testRTR() throws SyntaxError {
|
|
|
|
+ RTR mno = new RTR("RTR");
|
|
|
|
+ assertEquals(0xe0, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testREST() throws SyntaxError {
|
|
|
|
+ REST mno = new REST("REST");
|
|
|
|
+ assertEquals(0xef, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testTONE() throws SyntaxError {
|
|
|
|
+ TONE mno = new TONE("TONE");
|
|
|
|
+ assertEquals(0xf8, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Test
|
|
|
|
+ void testPEND() throws SyntaxError {
|
|
|
|
+ PEND mno = new PEND("PEND");
|
|
|
|
+ assertEquals(0xff, mno.getByte());
|
|
|
|
+ }
|
|
|
|
+
|
|
@Test
|
|
@Test
|
|
void testMnemonicFactory() throws SyntaxError {
|
|
void testMnemonicFactory() throws SyntaxError {
|
|
Mnemonic mnemonic = MnemonicFactory.getMnemonic("SWAP", 0);
|
|
Mnemonic mnemonic = MnemonicFactory.getMnemonic("SWAP", 0);
|
|
@@ -241,5 +313,41 @@ class TestSingleMnemonics {
|
|
|
|
|
|
mnemonic = MnemonicFactory.getMnemonic("BSUBA", 0);
|
|
mnemonic = MnemonicFactory.getMnemonic("BSUBA", 0);
|
|
assertEquals(BSUBA.class, mnemonic.getClass());
|
|
assertEquals(BSUBA.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("SKIP0", 0);
|
|
|
|
+ assertEquals(SKIP0.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("AGTB", 0);
|
|
|
|
+ assertEquals(AGTB.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("ALTB", 0);
|
|
|
|
+ assertEquals(ALTB.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("AEQB", 0);
|
|
|
|
+ assertEquals(AEQB.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("PRG0", 0);
|
|
|
|
+ assertEquals(PRG0.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("PRG1", 0);
|
|
|
|
+ assertEquals(PRG1.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("SEL0", 0);
|
|
|
|
+ assertEquals(SEL0.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("SEL1", 0);
|
|
|
|
+ assertEquals(SEL1.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("RTR", 0);
|
|
|
|
+ assertEquals(RTR.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("REST", 0);
|
|
|
|
+ assertEquals(REST.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("TONE", 0);
|
|
|
|
+ assertEquals(TONE.class, mnemonic.getClass());
|
|
|
|
+
|
|
|
|
+ mnemonic = MnemonicFactory.getMnemonic("PEND", 0);
|
|
|
|
+ assertEquals(PEND.class, mnemonic.getClass());
|
|
}
|
|
}
|
|
}
|
|
}
|