From: johanknol Date: Fri, 16 Nov 2001 19:21:24 +0000 (+0000) Subject: another small stack fix, no test case but this should be better X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bb95eae1f1f78932125b77afc724d24dd4717ccf;p=fw%2Fsdcc another small stack fix, no test case but this should be better git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1607 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/gen.c b/src/ds390/gen.c index 3f00cf22..40bd4d63 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -2402,8 +2402,8 @@ genCall (iCode * ic) emitcode ("mov","a,sp"); emitcode ("subb","a,#0x%02x",ic->parmBytes & 0xff); emitcode ("mov","sp,a"); - emitcode ("mov","a,#0x%02x",(ic->parmBytes >> 8) & 0xff); - emitcode ("subb","a,esp"); + emitcode ("mov","a,esp"); + emitcode ("subb","a,#0x%02x",(ic->parmBytes >> 8) & 0xff); emitcode ("mov","esp,a"); } else { int i;