another small stack fix, no test case but this should be better
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 16 Nov 2001 19:21:24 +0000 (19:21 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 16 Nov 2001 19:21:24 +0000 (19:21 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1607 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/gen.c

index 3f00cf221cc103739f680703686b49adba595928..40bd4d6321cb9d1a7a6e2815d59e34c4950b0e68 100644 (file)
@@ -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;