Exemplo n.º 1
0
        public void Copy(ulong source, ulong destination, ulong length)
        {
            var sourceDevice      = this.devices[SystemBusController.GetDeviceId(source)];
            var destinationDevice = this.devices[SystemBusController.GetDeviceId(destination)];

            if (sourceDevice.Id == destinationDevice.Id)
            {
                sourceDevice.Copy(SystemBusController.GetAddress(source), SystemBusController.GetAddress(destination), length);
            }
            else
            {
                destinationDevice.Write(SystemBusController.GetAddress(destination), sourceDevice.Read(SystemBusController.GetAddress(source), length));
            }
        }
Exemplo n.º 2
0
 public void WriteWord(ulong address, ulong data) => this.devices[SystemBusController.GetDeviceId(address)].WriteWord(SystemBusController.GetAddress(address), data);
Exemplo n.º 3
0
 public void Write(ulong destination, ulong[] data) => this.devices[SystemBusController.GetDeviceId(destination)].Write(SystemBusController.GetAddress(destination), data);
Exemplo n.º 4
0
 public ulong ReadWord(ulong address) => this.devices[SystemBusController.GetDeviceId(address)].ReadWord(SystemBusController.GetAddress(address));
Exemplo n.º 5
0
 public ulong[] Read(ulong source, ulong length) => this.devices[SystemBusController.GetDeviceId(source)].Read(SystemBusController.GetAddress(source), length);