aboutsummaryrefslogtreecommitdiff
path: root/opcodes/d10v-dis.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-12-04 12:30:55 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-12-04 12:30:55 +0000
commit373efcb30978bae9076679250c37ff070978e813 (patch)
tree6297d2b90d83df35bf1eb248ef3aedb8c5a3d8bd /opcodes/d10v-dis.c
parent8350bcd967852fa3d68b8d935331fe2b3e81bbfe (diff)
downloadfsf-binutils-gdb-373efcb30978bae9076679250c37ff070978e813.zip
fsf-binutils-gdb-373efcb30978bae9076679250c37ff070978e813.tar.gz
fsf-binutils-gdb-373efcb30978bae9076679250c37ff070978e813.tar.bz2
* d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of
unmatched register.
Diffstat (limited to 'opcodes/d10v-dis.c')
-rw-r--r--opcodes/d10v-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c
index 4a89d8f..433fd51 100644
--- a/opcodes/d10v-dis.c
+++ b/opcodes/d10v-dis.c
@@ -145,7 +145,7 @@ print_operand (oper, insn, op, memaddr, info)
(*info->fprintf_func) (info->stream, "cr");
else if (oper->flags & OPERAND_REG)
(*info->fprintf_func) (info->stream, "r");
- (*info->fprintf_func) (info->stream, "%d", num);
+ (*info->fprintf_func) (info->stream, "%d", num & REGISTER_MASK);
}
}
else