From feafbb2e30a44528263753647e5b412d9576876e Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 23 Dec 2009 03:51:47 +0000 Subject: [PATCH] * rx/rx.c (decode_opcode): btst bit address mask fix. --- sim/rx/ChangeLog | 4 ++++ sim/rx/rx.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index 67b89589524..bb3b45153d4 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,7 @@ +2009-12-22 Yoshinori Sato + + * rx/rx.c (decode_opcode): btst bit address mask fix. + 2009-11-30 DJ Delorie * rx/rx.c (decode_opcode): fix SWHILE logic. diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 68329e24370..c9c3c01e55d 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -676,7 +676,7 @@ decode_opcode () case RXO_btst: ma = GS (); mb = GS2 (); - if (opcode.op[0].type == RX_Operand_Register) + if (opcode.op[1].type == RX_Operand_Register) mb &= 0x1f; else mb &= 0x07; -- 2.30.2