Example #1
0
        public void GenerateLiteralDc()
        {
            ProgramInstruction target   = ProgramInstructionTest.Make(MnemonicDef.LD, "GR1,=1234,GR2");
            LabelTable         lblTable = new LabelTable();
            String             actual   = target.GenerateLiteralDc(lblTable);
            String             expected = ProgramLineTest.MakeGeneratedLine("LTRL0001", "DC", "1234");

            Assert.AreEqual(expected, actual, "リテラルの DC 命令が生成される");
        }
Example #2
0
 public void TestInitialize()
 {
     m_rAdrXOrR1R2_RAdrX = ProgramInstructionTest.Make(MnemonicDef.LD, "GR1,#ABCD,GR2");
     m_rAdrXOrR1R2_R1R2  = ProgramInstructionTest.Make(MnemonicDef.LD, "GR3,GR4");
 }