And short immediate instructions use unsigned immediates, not signed.
authorMichael Meissner <gnu@the-meissners.org>
Sat, 10 May 1997 16:40:21 +0000 (16:40 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Sat, 10 May 1997 16:40:21 +0000 (16:40 +0000)
sim/tic80/ChangeLog
sim/tic80/insns

index 131098fd4d542207388d3b735e720ba2e1226c77..382fa79ef76595d05762f537e8e6cdcc1e7ba1da 100644 (file)
@@ -1,3 +1,8 @@
+Sat May 10 12:35:47 1997  Michael Meissner  <meissner@cygnus.com>
+
+       * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
+       signed.
+
 Fri May  9 15:47:36 1997  Mike Meissner  <meissner@cygnus.com>
 
        * insns (cmp_vals,do_cmp): Produce the correct bits as specified
index 4e91cb6c3e0afcd7686e67aa52246d7ba6bf98ce..a78edc11fa505b1a02812de230b35a8e0f3a31b0 100644 (file)
@@ -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);