cleanup fp fix to pop directly instead of pop acc/mov x,acc; what was I thinking?
authorkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 19 Sep 2000 22:36:21 +0000 (22:36 +0000)
committerkvigor <kvigor@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 19 Sep 2000 22:36:21 +0000 (22:36 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@384 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/ds390/gen.c

index b105888b5d6ef8bccf019faf8c00f9fe50d156a0..fd535d8ed3e2b51fbff17898c53c32a3f1ce3618 100644 (file)
@@ -6627,10 +6627,8 @@ static void genFarPointerGet (operand *left,
                  emitcode("push", "%s", aopGet(AOP(left),0,FALSE,TRUE));
                  emitcode("push", "%s", aopGet(AOP(left),1,FALSE,TRUE));
                  emitcode("mov", "dpx,%s",aopGet(AOP(left),2,FALSE,FALSE));
-                 emitcode("pop", "acc");
-                 emitcode("mov", "dph,a");
-                 emitcode("pop", "acc");
-                 emitcode("mov", "dpl,a");
+                 emitcode("pop", "dph");
+                 emitcode("pop", "dpl");
             }
         }
     }
@@ -7216,10 +7214,8 @@ static void genFarPointerSet (operand *right,
                  emitcode("push", "%s", aopGet(AOP(result),0,FALSE,TRUE));
                  emitcode("push", "%s", aopGet(AOP(result),1,FALSE,TRUE));
                  emitcode("mov", "dpx,%s",aopGet(AOP(result),2,FALSE,FALSE));
-                 emitcode("pop", "acc");
-                 emitcode("mov", "dph,a");
-                 emitcode("pop", "acc");
-                 emitcode("mov", "dpl,a");
+                 emitcode("pop", "dph");
+                 emitcode("pop", "dpl");
             }
         }
     }