& sp with 0xff
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 23 Nov 2001 21:39:30 +0000 (21:39 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 23 Nov 2001 21:39:30 +0000 (21:39 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1632 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCglue.c

index e31f98609feab8e26ce0c5ccb21fec47d452dc28..209f5d8fa2ff7dbefe1c7cf6491e1f3cdb78ab1a 100644 (file)
@@ -1480,7 +1480,7 @@ glue ()
       /* initialise the stack pointer */
       /* if the user specified a value then use it */
       if (options.stack_loc)
-       fprintf (asmFile, "\tmov\tsp,#%d\n", options.stack_loc);
+       fprintf (asmFile, "\tmov\tsp,#%d\n", options.stack_loc & 0xff);
       else
        /* no: we have to compute it */
       if (!options.stackOnData && maxRegBank <= 3)