]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/pushw.s
Fixed bugs; and, improved the efficiency of some pce library functions.
[cc65] / libsrc / runtime / pushw.s
index a88ebc3d26118a3d3c04cd8000e376e114021703..4b1920cdd56ff10511f73b9f4fad4b7dce63d663 100644 (file)
@@ -4,18 +4,19 @@
 ; CC65 runtime: Fetch word indirect and push
 ;
 
-       .export         pushw, pushwidx
-       .import         pushax
-       .importzp       ptr1
+        .export         pushw, pushwidx, pushptr1idx
+        .import         pushax
+        .importzp       ptr1
 
 
 pushw:  ldy     #1
 pushwidx:
-        sta    ptr1
-       stx     ptr1+1
-       lda     (ptr1),y
-       tax
-       dey
-       lda     (ptr1),y
-       jmp     pushax
+        sta     ptr1
+        stx     ptr1+1
+pushptr1idx:
+        lda     (ptr1),y
+        tax
+        dey
+        lda     (ptr1),y
+        jmp     pushax