From 56927faaaa38f82ff0022b0b687780633f3d59f1 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 b3d72868ad..d6cc2319fc 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 4a89d8f0c8..433fd51832 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.11.0