public Instruction(VirtualMachine machine) { this.machine = machine; Left = new Operand(machine); Right = new Operand(machine); }
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]; } }
/// <summary> /// Handles an interrupt request (requested by the device, not program). /// </summary> public abstract void HandleInterruptRequest(VirtualMachine machine);
public Operand(VirtualMachine machine) { this.machine = machine; }