//--------------------------------------------------------------------- public Cpu(StackMemory stackMemory, IBios bios, double[] args) { this.Stack = stackMemory; this.Bios = bios; this.Args = args; }
//--------------------------------------------------------------------- public VirtualMachine(IBios bios = null, int stackSize = 1024, params double[] args) { var stack = new StackMemory(stackSize); this.Cpu = new Cpu(stack, bios ?? new ConsoleBios(), args); }