]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/pushax.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / runtime / pushax.s
index d9efe7c0e636f4b52000c472b9ca410b66f04152..cba313c2f4e7e4a615b7072cb1e88a38192ccd6f 100644 (file)
@@ -4,32 +4,32 @@
 ; CC65 runtime: Push value in a/x onto the stack
 ;
 
-               .export         push0, pusha0, pushax
-       .importzp       sp
+        .export         push0, pusha0, pushax
+        .importzp       sp
 
-push0: lda     #0
-pusha0:        ldx     #0
+push0:  lda     #0
+pusha0: ldx     #0
 
 ; This function is used *a lot*, so don't call any subroutines here.
 ; Beware: The value in ax must not be changed by this function!
 ; Beware^2: The optimizer knows about the value of Y after the function
 ;           returns!
 
-.proc  pushax
+.proc   pushax
 
-       pha                     ; (3)
-       lda     sp              ; (6)
-       sec                     ; (8)
-       sbc     #2              ; (10)
-       sta     sp              ; (13)
-       bcs     @L1             ; (17)
-       dec     sp+1            ; (+5)
-@L1:   ldy     #1              ; (19)
-       txa                     ; (21)
-       sta     (sp),y          ; (27)
-       pla                     ; (31)
-       dey                     ; (33)
-       sta     (sp),y          ; (38)
-       rts                     ; (44)     
+        pha                     ; (3)
+        lda     sp              ; (6)
+        sec                     ; (8)
+        sbc     #2              ; (10)
+        sta     sp              ; (13)
+        bcs     @L1             ; (17)
+        dec     sp+1            ; (+5)
+@L1:    ldy     #1              ; (19)
+        txa                     ; (21)
+        sta     (sp),y          ; (27)
+        pla                     ; (31)
+        dey                     ; (33)
+        sta     (sp),y          ; (38)
+        rts                     ; (44)     
 
 .endproc