Fixed signed values (which were always considered negative)

This commit is contained in:
Pierre Pronchery 2011-04-17 05:59:11 +00:00
parent 60b8d52248
commit 5754d2ddb5

View File

@ -177,7 +177,8 @@ static int _write_immediate(ArchPlugin * plugin,
{
uint64_t value = operand->value.immediate.value;
if(AO_GET_FLAGS(definition) & AOF_SIGNED)
if((AO_GET_FLAGS(definition) & AOF_SIGNED)
&& operand->value.immediate.negative != 0)
value = -value;
switch(AO_GET_SIZE(definition) >> 3)
{