// All in hex
        public void AddCommand(string address, string commandNumber, string a1, string a2, string a3)
        {
            address = Convert.ToInt32(address, 16).ToString();

            LM3Command lLM3Command = new LM3Command(commandNumber, Convert.ToInt32(a1, 16), Convert.ToInt32(a2, 16), Convert.ToInt32(a3, 16));
            mLM3Memory.SetCellByAddress(address, lLM3Command);
        }
        public void LM3MemoryFillerTestOne()
        {
            LM3Memory memory = new LM3Memory();
            LM3MemoryFiller filler = new LM3MemoryFiller(memory);
            LM3Command command = new LM3Command("86", 4097, 4097, 4097);

            filler.AddCommand("0101", "86", "1001", "1001", "1001");

            Assert.AreEqual(command.ToString(), memory.GetCellByAddress("0257").ToString());
        }
        public void LM3MemoryFillerTestTwo()
        {
            LM3Memory memory = new LM3Memory();
            LM3MemoryFiller filler = new LM3MemoryFiller(memory);
            LM3Command command = new LM3Command("86", 1001, 1001, 1001);
            CommandPosition position = new CommandPosition(10, 2, 5);

            filler.AddCommand("0101", "86", "1001", "1001", "1001");
            filler.AddCommandPosition("0101", position);

            Assert.AreEqual(position, memory.GetCellPositionByAddress("0257"));
        }