From: johanknol Date: Sun, 17 Sep 2000 17:23:59 +0000 (+0000) Subject: ds390 uses a 4 byte instruction code in flat24 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=6907dd20079e7ba497fcd39949990880d93464be;p=fw%2Fsdcc 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 --- 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);