]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/ldau0sp.s
Fixed a bug
[cc65] / libsrc / runtime / ldau0sp.s
index e967f7a822b0a46597504777a74aed4b23f78355..ff91261c245c3d1abc57398b88b713481c1edb96 100644 (file)
@@ -16,6 +16,10 @@ ldau0ysp:
        lda     (sp),y
        sta     ptr1
        ldx     #0
-       lda     (ptr1,x)
+.ifpc02
+       lda     (ptr1)          ; Save one cycle for the C02
+.else
+       lda     (ptr1,x)
+.endif
        rts