]> git.sur5r.net Git - cc65/blobdiff - libsrc/telestrat/open.s
Correcting some spaces
[cc65] / libsrc / telestrat / open.s
index 9455855dace392fc5123e4bca6fb80417a1857b0..b3b390003222c9cfc9e970ee991bddad48c4ec18 100644 (file)
@@ -1,33 +1,32 @@
-        .export         _open
-        .import                addysp,popax
-        .importzp          sp,tmp2,tmp3,tmp1
+    .export         _open
+    .import         addysp,popax
+    .importzp      sp,tmp2,tmp3,tmp1
        
        
-        .include        "telestrat.inc"
-        .include               "errno.inc"
-        .include        "fcntl.inc"    
+    .include   "telestrat.inc"
+    .include   "errno.inc"
+    .include   "fcntl.inc"     
 
 ; int open (const char* name, int flags, ...);    /* May take a mode argument */
 .proc _open
 ; Throw away any additional parameters passed through the ellipsis
 
-        dey                     ; Parm count < 4 shouldn't be needed to be...
-        dey                     ; ...checked (it generates a c compiler warning)
-        dey
-        dey
-        beq            parmok          ; Branch if parameter count ok
-        jsr            addysp          ; Fix stack, throw away unused parameters
+    dey                     ; Parm count < 4 shouldn't be needed to be...
+    dey                     ; ...checked (it generates a c compiler warning)
+    dey
+    dey
+    beq        parmok          ; Branch if parameter count ok
+    jsr        addysp          ; Fix stack, throw away unused parameters
 
 ; Parameters ok. Pop the flags and save them into tmp3
 
 parmok: jsr            popax           ; Get flagss
-               sta                     tmp3 ; save flags
+    sta                        tmp3 ; save flags
 ; Get the filename from stack and parse it. Bail out if is not ok
-
-        jsr            popax   ; Get name
-        ldy            tmp3    ; Get flags again
-        BRK_TELEMON XOPEN      ; launch primitive ROM
-        rts
+    jsr        popax   ; Get name
+    ldy                tmp3    ; Get flags again
+    BRK_TELEMON XOPEN  ; launch primitive ROM
+    rts
 .endproc
                
                
\ No newline at end of file