public void Write(int registerId, byte value) { uint val = 0xFFU & value; _emulator.ThrowIfDisposed(); _emulator.RegWrite(registerId, ref val); }
/// <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); }