* rx/rx.c (decode_opcode): btst bit address mask fix.

This commit is contained in:
DJ Delorie 2009-12-23 03:51:47 +00:00
parent 546c251368
commit feafbb2e30
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-12-22 Yoshinori Sato <ysato@users.sourceforge.jp>
* rx/rx.c (decode_opcode): btst bit address mask fix.
2009-11-30 DJ Delorie <dj@redhat.com>
* rx/rx.c (decode_opcode): fix SWHILE logic.

View File

@ -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;