From 001af99ed347d5514928063015654fddf4a9a0e6 Mon Sep 17 00:00:00 2001 From: kvigor Date: Tue, 19 Sep 2000 22:36:21 +0000 Subject: [PATCH] cleanup fp fix to pop directly instead of pop acc/mov x,acc; what was I thinking? git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@384 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/ds390/gen.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/ds390/gen.c b/src/ds390/gen.c index b105888b..fd535d8e 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -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"); } } } -- 2.47.2