public UrclMachine(ulong cores, ulong registers, ulong maxStack, ulong ram, ulong rom, bool coresExecOnROM = false, ulong bitmask = uint.MaxValue, IO ioBus = null) { Cores = new Core[cores]; for (ulong i = 0; i < cores; i++) { Cores[i] = new Core(this, coresExecOnROM, registers, maxStack); } RAM = new object[ram]; ROM = new object[rom]; BitMask = bitmask; IoBus = ioBus is null ? new DefaultIO() : ioBus; IoBus.Init(this); }
public IoPinStates() { Bus = new IoBus <IByte>(Clk, new BusMessage <IByte> { Data = new Byte(), Name = "IoBus" }); }