public void WriteRegister(Thread thread, long value)
{
this.value = value;
if (addr_on_stack.IsNull)
{
thread.SetRegisters(registers);
}
else if (Size == thread.TargetMemoryInfo.TargetIntegerSize)
{
thread.WriteInteger(addr_on_stack, (int)value);
}
else
{
thread.WriteLongInteger(addr_on_stack, value);
}
}