예제 #1
0
 //---------------------------------------------------------------------
 public Cpu(StackMemory stackMemory, IBios bios, double[] args)
 {
     this.Stack = stackMemory;
     this.Bios  = bios;
     this.Args  = args;
 }
예제 #2
0
        //---------------------------------------------------------------------
        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);
        }