From 373efcb30978bae9076679250c37ff070978e813 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 4 Dec 2001 12:30:55 +0000 Subject: [PATCH] * d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of unmatched register. --- opcodes/ChangeLog | 3 +++ opcodes/d10v-dis.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b3d72868ad3..d6cc2319fcd 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,8 @@ 2001-12-04 Alexandre Oliva + * d10v-dis.c (print_operand): Apply REGISTER_MASK to `num' of + unmatched register. + * d10v-dis.c (print_operand): Disregard OPERAND_SP in register predefined value. diff --git a/opcodes/d10v-dis.c b/opcodes/d10v-dis.c index 4a89d8f0c84..433fd518326 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 -- 2.30.2