From f553036cea0e5299e3fcd2cdb2e47ccd8e1347b0 Mon Sep 17 00:00:00 2001 From: kvigor Date: Tue, 6 Nov 2001 06:24:40 +0000 Subject: [PATCH] Arithmetic accelerator: genModTwoBytes loaded MB backwards with literals too. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1513 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/ds390/gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds390/gen.c b/src/ds390/gen.c index 3697e8d7..eb813638 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -4674,8 +4674,8 @@ static void genModTwoByte (operand *left, operand *right, if (val < 0) { val = -val; } - emitcode ("mov","mb,#0x%02x",(val >> 8) & 0xff); emitcode ("mov","mb,#0x%02x",val & 0xff); + emitcode ("mov","mb,#0x%02x",(val >> 8) & 0xff); } else { lbl = newiTempLabel(NULL); emitcode ("mov","b,%s",aopGet(AOP(right),0,FALSE,FALSE,TRUE)); -- 2.47.2