]> git.gag.com Git - fw/sdcc/blobdiff - src/ds390/gen.c
fixed bug #478698
[fw/sdcc] / src / ds390 / gen.c
index 1bb15f682fbc725c74e3f71a4d6b56e22284823c..109abe0aea960b92ef58c6bda6373b8b3ae452cd 100644 (file)
@@ -1244,7 +1244,12 @@ aopPut (asmop * aop, char *s, int offset)
       if (strcmp (s, "a") == 0)
        emitcode ("push", "acc");
       else
-       emitcode ("push", "%s", s);
+       if (*s=='@') {
+         MOVA(s);
+         emitcode ("push", "acc");
+       } else {
+         emitcode ("push", s);
+       }
 
       break;