Fix disassembly bug.

This commit is contained in:
Daniel Beer 2010-04-28 18:30:10 +12:00
parent ba6e3366ff
commit 731a1e8b39
1 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ static int format_reg(char *buf, int max_len,
const char *suffix = ""; const char *suffix = "";
const char *name; const char *name;
switch (amode) { switch (amode) {
case MSP430_AMODE_REGISTER: case MSP430_AMODE_REGISTER:
break; break;
@ -116,7 +115,7 @@ static int format_operand(char *buf, int max_len,
int len = 0; int len = 0;
len += format_addr(buf, max_len, amode, addr); len += format_addr(buf, max_len, amode, addr);
len += format_reg(buf + len, max_len - len, amode, addr); len += format_reg(buf + len, max_len - len, amode, reg);
return len; return len;
} }