|
@@ -362,10 +362,10 @@ bool argparse_immediate(ASMArgImmediate *result, ASMArgParseInfo ai) |
|
|
const ASMDefine *define = asm_deftable_find(ai.deftable, ai.arg, ai.size); |
|
|
const ASMDefine *define = asm_deftable_find(ai.deftable, ai.arg, ai.size); |
|
|
if (define) { |
|
|
if (define) { |
|
|
if (negative) { |
|
|
if (negative) { |
|
|
calculate_immediate_mask(result); |
|
|
|
|
|
result->is_label = false; |
|
|
result->is_label = false; |
|
|
result->uval = define->value.uval; |
|
|
result->uval = define->value.uval; |
|
|
result->sval = -define->value.sval; |
|
|
result->sval = -define->value.sval; |
|
|
|
|
|
calculate_immediate_mask(result); |
|
|
} else { |
|
|
} else { |
|
|
*result = define->value; |
|
|
*result = define->value; |
|
|
} |
|
|
} |
|
@@ -386,10 +386,10 @@ bool argparse_immediate(ASMArgImmediate *result, ASMArgParseInfo ai) |
|
|
if (sval < INT16_MIN) |
|
|
if (sval < INT16_MIN) |
|
|
return false; |
|
|
return false; |
|
|
|
|
|
|
|
|
calculate_immediate_mask(result); |
|
|
|
|
|
result->is_label = false; |
|
|
result->is_label = false; |
|
|
result->uval = uval; |
|
|
result->uval = uval; |
|
|
result->sval = sval; |
|
|
result->sval = sval; |
|
|
|
|
|
calculate_immediate_mask(result); |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|