Пример #1
0
            private MemoryItem SetRegister(char letter, MemoryItem mem)
            {
                switch (letter)
                {
                case 'a':
                    mem.register = Register.REGISTERS.A;
                    break;

                case 'b':
                    mem.register = Register.REGISTERS.B;
                    break;

                case 'c':
                    mem.register = Register.REGISTERS.C;
                    break;

                case 'd':
                    mem.register = Register.REGISTERS.D;
                    break;
                }
                return(mem);
            }
Пример #2
0
 private MovInstruction(MemoryItem dest, MemoryItem src)
 {
     param1 = dest;
     param2 = src;
 }
Пример #3
0
 public MovInstructionBuilder()
 {
     dest = new MemoryItem();
     src  = new MemoryItem();
 }