From: sandeep Date: Fri, 23 Nov 2001 21:39:30 +0000 (+0000) Subject: & sp with 0xff X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=19ff45b2f8037758e965b1f7f920064985130b4f;p=fw%2Fsdcc & sp with 0xff git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1632 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglue.c b/src/SDCCglue.c index e31f9860..209f5d8f 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -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)