Skip to content

Commit

Permalink
Fix #15198 (#15199) arm64 assembler const value ##asm
Browse files Browse the repository at this point in the history
  • Loading branch information
zadlg authored and radare committed Oct 5, 2019
1 parent 049686a commit 7144b91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libr/asm/arch/arm/armass64.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,15 @@ static bool parseOperands(char* str, ArmOp *op) {
op->operands[operand].mem_option = mem_opt;
}
break;
case '#':
if (token[1] == '-') {
op->operands[operand].sign = -1;
}
op->operands_count ++;
op->operands[operand].type = ARM_CONSTANT;
op->operands[operand].immediate = r_num_math (NULL, token + 1);
imm_count++;
break;
case '-':
op->operands[operand].sign = -1;
// falthru
Expand Down

0 comments on commit 7144b91

Please sign in to comment.