From d2ca108b343a1250d40a7ef96de9e02facb3ecf6 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sat, 12 Jun 1999 06:44:56 +0000 Subject: [PATCH] Clear high word of %esp when returning from CallFrom16. --- tools/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build.c b/tools/build.c index 6ae9601359c..e3348bc803e 100644 --- a/tools/build.c +++ b/tools/build.c @@ -1836,7 +1836,7 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile ) fprintf( outfile, "\tdata16\n"); #endif fprintf( outfile, "\t.byte 0x64\n\tmovw (%d),%%ss\n", STACKOFFSET + 2 ); - fprintf( outfile, "\t.byte 0x64\n\tmovw (%d),%%sp\n", STACKOFFSET ); + fprintf( outfile, "\t.byte 0x64\n\tmovzwl (%d),%%esp\n", STACKOFFSET ); fprintf( outfile, "\t.byte 0x64\n\tpopl (%d)\n", STACKOFFSET ); if (reg_func)