From 20b2f9bc83913de6065a40c14c7cb7c96e7bb8d1 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Sat, 10 May 1997 16:40:21 +0000 Subject: [PATCH] And short immediate instructions use unsigned immediates, not signed. --- sim/tic80/ChangeLog | 5 +++++ sim/tic80/insns | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog index 131098fd4d5..382fa79ef76 100644 --- a/sim/tic80/ChangeLog +++ b/sim/tic80/ChangeLog @@ -1,3 +1,8 @@ +Sat May 10 12:35:47 1997 Michael Meissner + + * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not + signed. + Fri May 9 15:47:36 1997 Mike Meissner * insns (cmp_vals,do_cmp): Produce the correct bits as specified diff --git a/sim/tic80/insns b/sim/tic80/insns index 4e91cb6c3e0..a78edc11fa5 100644 --- a/sim/tic80/insns +++ b/sim/tic80/insns @@ -64,7 +64,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2 // and, and.tt -31.Dest,26.Source2,21.0b0010001,14.SignedImmediate::::and.tt i +31.Dest,26.Source2,21.0b0010001,14.UnsignedImmediate::::and.tt i do_and (_SD, rDest, vSource1, rSource2); 31.Dest,26.Source2,21.0b110010001,12.0,11./,4.Source1::::and.tt r do_and (_SD, rDest, rSource1, rSource2); @@ -74,7 +74,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2 // and.ff -31.Dest,26.Source2,21.0b0011000,14.SignedImmediate::::and.ff i +31.Dest,26.Source2,21.0b0011000,14.UnsignedImmediate::::and.ff i do_and (_SD, rDest, ~vSource1, ~rSource2); 31.Dest,26.Source2,21.0b110011000,12.0,11./,4.Source1::::and.ff r do_and (_SD, rDest, ~rSource1, ~rSource2); @@ -84,7 +84,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2 // and.ft -31.Dest,26.Source2,21.0b0010100,14.SignedImmediate::::and.ft i +31.Dest,26.Source2,21.0b0010100,14.UnsignedImmediate::::and.ft i do_and (_SD, rDest, ~vSource1, rSource2); 31.Dest,26.Source2,21.0b110010100,12.0,11./,4.Source1::::and.ft r do_and (_SD, rDest, ~rSource1, rSource2); @@ -94,7 +94,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2 // and.tf -31.Dest,26.Source2,21.0b0010010,14.SignedImmediate::::and.tf i +31.Dest,26.Source2,21.0b0010010,14.UnsignedImmediate::::and.tf i do_and (_SD, rDest, vSource1, ~rSource2); 31.Dest,26.Source2,21.0b110010010,12.0,11./,4.Source1::::and.tf r do_and (_SD, rDest, rSource1, ~rSource2); -- 2.30.2