public void Execute(BaseMemoryMap memoryMap)
        {
            if (!File.Exists(_filename))
            {
                return;
            }

            var file   = File.OpenRead(_filename);
            var buffer = new byte[file.Length];

            file.Read(buffer, 0, buffer.Length);
            file.Close();

            memoryMap.Write(buffer, 0, buffer.Length, Offset);
        }
Esempio n. 2
0
 public void Execute(BaseMemoryMap memoryMap)
 {
     memoryMap.WriteByte(Offset, _value);
 }
 public MemoryMapByteProvider(BaseMemoryMap memoryMap)
 {
     _memoryMap = memoryMap;
 }
 public TestArm32ExecutionEnvironment(ICpuState cpuState, BaseMemoryMap memoryMap, IInterruptBroker interruptBroker)
 {
     CpuState        = cpuState;
     MemoryMap       = memoryMap;
     InterruptBroker = interruptBroker;
 }