Beispiel #1
0
        public void Write(int registerId, byte value)
        {
            uint val = 0xFFU & value;

            _emulator.ThrowIfDisposed();
            _emulator.RegWrite(registerId, ref val);
        }
Beispiel #2
0
 /// <summary>
 /// Writes the specified value to the register with the specified register ID.
 /// </summary>
 /// <param name="registerId">Register ID.</param>
 /// <param name="value">Value to write to register.</param>
 /// <exception cref="UnicornException">Unicorn did not return <see cref="Binds.UnicornError.Ok"/>.</exception>
 /// <exception cref="ObjectDisposedException"><see cref="Emulator"/> instance is disposed.</exception>
 public void Write(int registerId, long value)
 {
     _emulator.ThrowIfDisposed();
     _emulator.RegWrite(registerId, ref value);
 }