changeset 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 4c240a37e7c4
children 2714d379edc2
files simtool/smsp_restore.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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))