From 19ff45b2f8037758e965b1f7f920064985130b4f Mon Sep 17 00:00:00 2001 From: sandeep Date: Fri, 23 Nov 2001 21:39:30 +0000 Subject: [PATCH] & sp with 0xff git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1632 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2