ds390 uses a 4 byte instruction code in flat24
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 17 Sep 2000 17:23:59 +0000 (17:23 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 17 Sep 2000 17:23:59 +0000 (17:23 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@374 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/gen.c

index 1c12a31efdef18498025220451d15d63984af414..7b30c334f08cd1e0de796315355313f4aa65c44c 100644 (file)
@@ -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);