]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/ldau0sp.s
no TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
[cc65] / libsrc / runtime / ldau0sp.s
index e967f7a822b0a46597504777a74aed4b23f78355..0be99d32018ecaded0487a2e1c2a353789d9b645 100644 (file)
@@ -7,6 +7,8 @@
        .export         ldau00sp, ldau0ysp
        .importzp       sp, ptr1
 
+        .macpack        cpu
+
 ldau00sp:
        ldy     #1
 ldau0ysp:
@@ -16,6 +18,10 @@ ldau0ysp:
        lda     (sp),y
        sta     ptr1
        ldx     #0
-       lda     (ptr1,x)
+.if (.cpu .bitand CPU_ISET_65SC02)
+       lda     (ptr1)          ; Save one cycle for the C02
+.else
+       lda     (ptr1,x)
+.endif
        rts