Fixed formatting of indirect address operands.

This commit is contained in:
Daniel Beer 2010-03-20 16:26:16 +13:00
parent b233f22518
commit 0eca83f0e8
1 changed files with 1 additions and 1 deletions

2
dis.c
View File

@ -556,7 +556,7 @@ static int format_operand(char *buf, int max_len,
return format_addr(buf, max_len, "&", addr);
case MSP430_AMODE_INDIRECT:
return format_addr(buf, max_len, "@", addr);
return snprintf(buf, max_len, "@%s", msp430_reg_names[reg]);
case MSP430_AMODE_INDIRECT_INC:
return snprintf(buf, max_len, "@%s+", msp430_reg_names[reg]);