From 04e65a62c6136e9907d4db6d9cf0216832bdafa3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 16 Jan 2013 10:45:22 +0000 Subject: [PATCH] * rx.c (decode_opcode): Handle RXO_satr. --- sim/rx/ChangeLog | 4 ++++ sim/rx/rx.c | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index e5cb451a355..00f4bdcaa9e 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,7 @@ +2013-01-16 Nick Clifton + + * rx.c (decode_opcode): Handle RXO_satr. + 2012-06-15 Joel Brobecker * config.in, configure: Regenerate. diff --git a/sim/rx/rx.c b/sim/rx/rx.c index 661bdedee5a..e12aa85d2b6 100644 --- a/sim/rx/rx.c +++ b/sim/rx/rx.c @@ -1802,6 +1802,22 @@ decode_opcode () E1; break; + case RXO_satr: + if (FLAG_O && ! FLAG_S) + { + put_reg (6, 0x0); + put_reg (5, 0x7fffffff); + put_reg (4, 0xffffffff); + } + else if (FLAG_O && FLAG_S) + { + put_reg (6, 0xffffffff); + put_reg (5, 0x80000000); + put_reg (4, 0x0); + } + E1; + break; + case RXO_sbb: MATH_OP (-, ! carry); break; -- 2.30.2