diff simtool/smsp_restore.c @ 41:8cb269f5a902

fc-simtool smsp-restore: forgot to set parameter indicator bits
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 22:10:32 +0000
parents 2467b7acad1f
children 9c10afbb745a
line wrap: on
line diff
--- a/simtool/smsp_restore.c	Fri Feb 12 22:05:38 2021 +0000
+++ b/simtool/smsp_restore.c	Fri Feb 12 22:10:32 2021 +0000
@@ -148,6 +148,7 @@
 			return(-1);
 		}
 		fixp[25] = strtoul(cp, 0, 0);
+		fixp[0] &= 0xFB;
 		while (*cp && !isspace(*cp))
 			cp++;
 		while (isspace(*cp))
@@ -162,6 +163,7 @@
 			return(-1);
 		}
 		fixp[26] = strtoul(cp, 0, 0);
+		fixp[0] &= 0xF7;
 		while (*cp && !isspace(*cp))
 			cp++;
 		while (isspace(*cp))
@@ -176,6 +178,7 @@
 			return(-1);
 		}
 		fixp[27] = strtoul(cp, 0, 0);
+		fixp[0] &= 0xEF;
 		while (*cp && !isspace(*cp))
 			cp++;
 		while (isspace(*cp))