From 6907dd20079e7ba497fcd39949990880d93464be Mon Sep 17 00:00:00 2001 From: johanknol Date: Sun, 17 Sep 2000 17:23:59 +0000 Subject: [PATCH] ds390 uses a 4 byte instruction code in flat24 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@374 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 1c12a31e..7b30c334 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -7605,9 +7605,9 @@ static void genJumpTab (iCode *ic) /* get the condition into accumulator */ l = aopGet(AOP(IC_JTCOND(ic)),0,FALSE,FALSE); MOVA(l); - /* multiply by three */ + /* multiply by four! */ + emitcode("add","a,acc"); emitcode("add","a,acc"); - emitcode("add","a,%s",aopGet(AOP(IC_JTCOND(ic)),0,FALSE,FALSE)); freeAsmop(IC_JTCOND(ic),NULL,ic,TRUE); jtab = newiTempLabel(NULL); -- 2.47.2