]> git.sur5r.net Git - cc65/commitdiff
Normalized style.
authorOliver Schmidt <ol.sc@web.de>
Tue, 3 Jun 2014 16:30:11 +0000 (18:30 +0200)
committerOliver Schmidt <ol.sc@web.de>
Tue, 3 Jun 2014 16:30:11 +0000 (18:30 +0200)
We don't use .ifndef .else .endif

libsrc/atari/cgetc.s
libsrc/atari/chline.s
libsrc/atari/crt0.s
libsrc/atari/cvline.s
libsrc/atari/sysrename.s

index 54fe85bb47d0580aa5e4728ecda60bd1598ba683..2e9ebcb313ea045c86a581fe7b3ef37360624d01 100644 (file)
@@ -14,10 +14,10 @@ _cgetc:
         jsr     setcursor
         lda     #12
         sta     ICAX1Z          ; fix problems with direct call to KEYBDV
-.ifndef __ATARIXL__
-        jsr     @1
-.else
+.ifdef __ATARIXL__
         jsr     KEYBDV_handler
+.else
+        jsr     @1
 .endif
         ldx     #0
         rts
index b6ebba936aa170827902d898aa7784e8e6f95e1c..a096f35a06208b88fd306b3f02d3a9a11da26632 100644 (file)
@@ -9,10 +9,10 @@
         .import         popa, _gotoxy, cputdirect, setcursor
         .importzp       tmp1
 
-.ifndef __ATARI5200__
-CHRCODE =       $12+64
-.else
+.ifdef __ATARI5200__
 CHRCODE =       14
+.else
+CHRCODE =       $12+64
 .endif
 
 _chlinexy:
index ec41565b5778ed5245555a8196dd356e78c74c3c..f1c7b864e8ffd1d10bd189863eed957650c032dd 100644 (file)
@@ -53,7 +53,14 @@ start:
         tsx
         stx     SP_save
 
-.ifndef __ATARIXL__
+.ifdef __ATARIXL__
+
+        lda     #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
+        sta     sp
+        lda     #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
+        sta     sp+1
+
+.else
 
 ; Report memory usage
 
@@ -72,13 +79,6 @@ start:
         sta     APPMHI+1
         sta     sp+1                    ; setup runtime stack part 2
 
-.else
-
-        lda     #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
-        sta     sp
-        lda     #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
-        sta     sp+1
-
 .endif
 
 ; Call module constructors
index 5b1c3fd094cf05b79a7fa6283448713575d869a6..da6c8dca4ba1707ddc6f29d375bedc88ab5d6027 100644 (file)
         .import         popa, _gotoxy, putchar, setcursor
         .importzp       tmp1
 
-.ifndef __ATARI5200__
-CHRCODE =       $7C             ; Vertical bar
-.else
+.ifdef __ATARI5200__
 CHRCODE =       1               ; exclamation mark
+.else
+CHRCODE =       $7C             ; Vertical bar
 .endif
 
 _cvlinexy:
index fef18bded9f4e0c171057b5683c45074a9007ecf..e526af5c82dab5a97af59de82bc94f17f7a12fe4 100644 (file)
@@ -45,13 +45,7 @@ iocbok: stx     tmp4            ; remember IOCB index
         ldy     #0
         sty     sspc+1          ; initialize stack space
 
-.ifndef  UCASE_FILENAME
-
-        sta     ptr3
-        stx     ptr3+1
-        sty     sspc
-
-.else
+.ifdef  UCASE_FILENAME
 
 ; uppercase first (old) name and prepend device if needed
 
@@ -100,6 +94,12 @@ ucok2:  sta     ptr2            ; remember pointer to uppercased new name
         inc     sspc+1
 ukok4:
 
+.else
+
+        sta     ptr3
+        stx     ptr3+1
+        sty     sspc
+
 .endif
 
 ; create a string on the stack with the old filename and the new filename separated by an invalid character (space in our case)