From bb95eae1f1f78932125b77afc724d24dd4717ccf Mon Sep 17 00:00:00 2001 From: johanknol Date: Fri, 16 Nov 2001 19:21:24 +0000 Subject: [PATCH] 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 --- src/ds390/gen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2