]> git.sur5r.net Git - cc65/commitdiff
Remove 65C02 code, because in this case, the value of Y on return is always
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 20 Oct 2009 08:25:58 +0000 (08:25 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 20 Oct 2009 08:25:58 +0000 (08:25 +0000)
zero, which can be used by the optimizer.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4384 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/pusha.s

index c1f1e316081ba8b3e1cc4a1b060f2616b575c335..f4e9639dd7d66e89871dc84779ca5b5deb147d5f 100644 (file)
@@ -18,12 +18,8 @@ pushaysp:
 pusha: ldy     sp              ; (3)
                beq     @L1             ; (6)
        dec     sp              ; (11)
-.if (.cpu .bitand CPU_ISET_65SC02)
-       sta     (sp)
-.else
        ldy     #0              ; (13)
        sta     (sp),y          ; (19)
-.endif
        rts                     ; (25)
 
 @L1:   dec     sp+1            ; (11)