From: johanknol Date: Wed, 25 Jul 2001 16:16:22 +0000 (+0000) Subject: fixed bug 444269 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ff57bd302d70e7a58cb11a69e6dcc85e2804d5d4;p=fw%2Fsdcc fixed bug 444269 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1100 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/lib/_muluint.c b/device/lib/_muluint.c index 4622adcf..d5b923bf 100644 --- a/device/lib/_muluint.c +++ b/device/lib/_muluint.c @@ -53,7 +53,11 @@ unsigned int _muluint (unsigned int a, unsigned int b) mov r1,b mov b,r2 ; msb_a +#if defined(SDCC_ds390) || defined(SDCC_MODEL_LARGE) movx a,@dptr ; lsb_b +#else // must be SDCC_MODEL_SMALL + mov a,__muluint_PARM_2 ; lsb_b +#endif mul ab ; msb_a*lsb_b add a,r1 mov r1,a