From 89d1a47805104116b13103c6ddf857a84426f148 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 9 May 1997 20:16:01 +0000 Subject: [PATCH] Fix xor in simulator --- sim/tic80/ChangeLog | 1 + sim/tic80/insns | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog index aeaa4310688..131098fd4d5 100644 --- a/sim/tic80/ChangeLog +++ b/sim/tic80/ChangeLog @@ -2,6 +2,7 @@ Fri May 9 15:47:36 1997 Mike Meissner * insns (cmp_vals,do_cmp): Produce the correct bits as specified by the architecture. + (xor): Fix xor immediate patterns to use the correct bits. Fri May 9 09:55:33 1997 Andrew Cagney diff --git a/sim/tic80/insns b/sim/tic80/insns index f7edef1c87d..4e91cb6c3e0 100644 --- a/sim/tic80/insns +++ b/sim/tic80/insns @@ -1136,8 +1136,8 @@ void::function::do_xor:signed32 *rDest, signed32 Source1, signed32 Source2 *rDest = result; 31.Dest,26.Source2,21.0b0010110,14.UnsignedImmediate::::xor i do_xor (_SD, rDest, vSource1, rSource2); -31.Dest,26.Source2,21.0b110010110,13.0,12.0,11./,4.Source1::::xor r +31.Dest,26.Source2,21.0b110010110,12.0,11./,4.Source1::::xor r do_xor (_SD, rDest, rSource1, rSource2); -31.Dest,26.Source2,21.0b110010110,13.0,12.1,11./::::xor l +31.Dest,26.Source2,21.0b110010110,12.1,11./::::xor l long_immediate (LongUnsignedImmediate); do_xor (_SD, rDest, LongUnsignedImmediate, rSource2); -- 2.30.2