示例#1
0
        public Instruction(VirtualMachine machine)
        {
            this.machine = machine;

            Left = new Operand(machine);
            Right = new Operand(machine);
        }
示例#2
0
文件: Ship.cs 项目: Rohansi/Programe
        public Ship(string name, short[] program)
        {
            Name = name;
            Health = 1;

            machine = new VirtualMachine();
            for (var i = 0; i < Math.Min(program.Length, short.MaxValue); i++)
            {
                machine.Memory[i] = program[i];
            }
        }
示例#3
0
 /// <summary>
 /// Handles an interrupt request (requested by the device, not program).
 /// </summary>
 public abstract void HandleInterruptRequest(VirtualMachine machine);
示例#4
0
 public Operand(VirtualMachine machine)
 {
     this.machine = machine;
 }