Fixed signed values (which were always considered negative)
This commit is contained in:
parent
60b8d52248
commit
5754d2ddb5
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user