]> git.sur5r.net Git - cc65/commitdiff
Use '.ifdef' and '.ifndef' instead of '.if .defined' and '.if .not .defined'.
authorChristian Groessler <chris@groessler.org>
Thu, 19 Sep 2013 20:36:22 +0000 (22:36 +0200)
committerChristian Groessler <chris@groessler.org>
Thu, 19 Sep 2013 20:36:22 +0000 (22:36 +0200)
libsrc/atari/cgetc.s
libsrc/atari/crt0.s
libsrc/atari/irq.s
libsrc/atari/libref.s
libsrc/atari/ostype.s
libsrc/atari/save_area.s
libsrc/atari/shadow_ram_handlers.s
libsrc/atari/shadow_ram_prepare.s
libsrc/atari/system_check.s

index cf853f5ce7b0a7ac927ad4607a5b152c5cd41e64..54fe85bb47d0580aa5e4728ecda60bd1598ba683 100644 (file)
@@ -14,7 +14,7 @@ _cgetc:
         jsr     setcursor
         lda     #12
         sta     ICAX1Z          ; fix problems with direct call to KEYBDV
         jsr     setcursor
         lda     #12
         sta     ICAX1Z          ; fix problems with direct call to KEYBDV
-.if .not .defined(__ATARIXL__)
+.ifndef __ATARIXL__
         jsr     @1
 .else
         jsr     KEYBDV_handler
         jsr     @1
 .else
         jsr     KEYBDV_handler
@@ -22,7 +22,7 @@ _cgetc:
         ldx     #0
         rts
 
         ldx     #0
         rts
 
-.if .not .defined(__ATARIXL__)
+.ifndef __ATARIXL__
 @1:     lda     KEYBDV+5
         pha
         lda     KEYBDV+4
 @1:     lda     KEYBDV+5
         pha
         lda     KEYBDV+4
index 9bf5771d46accb386ea5ed97e2ed5b755eaa449c..07f2e3be79a3a9a92c1922beeaea3be58eed3eb8 100644 (file)
@@ -16,7 +16,7 @@
         .import         __STARTUP_LOAD__, __BSS_LOAD__
         .import         __RESERVED_MEMORY__
         .import         __RAM_START__, __RAM_SIZE__
         .import         __STARTUP_LOAD__, __BSS_LOAD__
         .import         __RESERVED_MEMORY__
         .import         __RAM_START__, __RAM_SIZE__
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
         .import         __STACKSIZE__
         .import         sram_init
         .import         scrdev
         .import         __STACKSIZE__
         .import         sram_init
         .import         scrdev
@@ -34,7 +34,7 @@
 
         .word   $FFFF
 
 
         .word   $FFFF
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 .segment        "MAINHDR"
 .endif
 
 .segment        "MAINHDR"
 .endif
 
@@ -55,7 +55,7 @@
 
 start:
 
 
 start:
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
         jsr     sram_init
 .endif
 
         jsr     sram_init
 .endif
 
@@ -68,7 +68,7 @@ start:
         tsx
         stx     spsave
 
         tsx
         stx     spsave
 
-.if .not .defined(__ATARIXL__)
+.ifndef __ATARIXL__
 
 ; Report memory usage
 
 
 ; Report memory usage
 
@@ -101,7 +101,7 @@ start:
         jsr     initlib
 
 .if 0
         jsr     initlib
 
 .if 0
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
         .import __heapadd
         .import pushax
         .import __RAM_BELOW_ROM_START__
         .import __heapadd
         .import pushax
         .import __RAM_BELOW_ROM_START__
@@ -165,7 +165,7 @@ _exit:  jsr     donelib         ; Run module destructors
         lda     APPMHI_save+1
         sta     APPMHI+1
 
         lda     APPMHI_save+1
         sta     APPMHI+1
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 
 ; Atari XL target stuff...
 
 
 ; Atari XL target stuff...
 
@@ -224,7 +224,7 @@ _exit:  jsr     donelib         ; Run module destructors
 spsave:         .res    1
 old_shflok:     .res    1
 old_lmargin:    .res    1
 spsave:         .res    1
 old_shflok:     .res    1
 old_lmargin:    .res    1
-.if .not .defined(__ATARIXL__)
+.ifndef __ATARIXL__
 APPMHI_save:    .res    2
 .endif
 
 APPMHI_save:    .res    2
 .endif
 
index 597ad9d608e4fb9c36a0be59e11f320b64177ada..3fbdc971b0b870ae50342c7bf573a1d8d58480ec 100644 (file)
@@ -39,7 +39,7 @@ doneirq:
 
 IRQStub:
         cld                             ; Just to be sure
 
 IRQStub:
         cld                             ; Just to be sure
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
        pha
        lda     PORTB
        pha
        pha
        lda     PORTB
        pha
@@ -47,7 +47,7 @@ IRQStub:
        sta     PORTB                   ; disable ROM  @@@ TODO: update CHARGEN
 .endif
         jsr     callirq                 ; Call the functions
        sta     PORTB                   ; disable ROM  @@@ TODO: update CHARGEN
 .endif
         jsr     callirq                 ; Call the functions
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
        pla
        sta     PORTB
        pla
        pla
        sta     PORTB
        pla
index 6d93a0b8e90070215dd6e052d80be549a217488d..171bd6de6047ef15374814355d1b5ea5ad06d025 100644 (file)
@@ -7,7 +7,7 @@
 
 em_libref       := _exit
 joy_libref      := _exit
 
 em_libref       := _exit
 joy_libref      := _exit
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
         .import CIO_handler
 tgi_libref      := CIO_handler
 .else
         .import CIO_handler
 tgi_libref      := CIO_handler
 .else
index 7a3342d2ac48f4c5a433b21e82d1cecdea770a2f..4fbeaaf7099befbeb56930c953eafe5b1849dda1 100644 (file)
@@ -40,7 +40,7 @@
 
         .export         _get_ostype
 
 
         .export         _get_ostype
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 
         .include "atari.inc"
         .import __CHARGEN_START__
 
         .include "atari.inc"
         .import __CHARGEN_START__
index 2fddce017868985ce4917130ab6eeba76b38cba4..5495be8ca82d1516d5690c4adc504633ff791147 100644 (file)
@@ -6,7 +6,7 @@
 ; Christian Groessler, chris@groessler.org, 2013
 ;
 
 ; Christian Groessler, chris@groessler.org, 2013
 ;
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 
 .export                SAVMSC_save
 .export                MEMTOP_save
 
 .export                SAVMSC_save
 .export                MEMTOP_save
index c01f56ddb1123937780a5548b73366fd6cdb20e1..9714644adbce2c6242268260f3d4f9a89d24eb27 100644 (file)
@@ -8,7 +8,7 @@ DEBUG   =       1
 USEWSYNC=      1
 CHKBUF =       1       ; check if bounce buffering is needed (bounce buffering is always done if set to 0)
 
 USEWSYNC=      1
 CHKBUF =       1       ; check if bounce buffering is needed (bounce buffering is always done if set to 0)
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 
        SHRAM_HANDLERS  = 1
         .include        "atari.inc"
 
        SHRAM_HANDLERS  = 1
         .include        "atari.inc"
@@ -1147,4 +1147,4 @@ orig_len:         .res    2
 req_len:               .res    2
 retlen:                        .res    2
 
 req_len:               .res    2
 retlen:                        .res    2
 
-.endif ; .if .defined(__ATARIXL__)
+.endif ; .ifdef __ATARIXL__
index 4dd0338b96a3703d7000138616eeb8fa55935806..be40baed38a2b1fec74b6d0d77aee1da7e7f1efb 100644 (file)
@@ -11,7 +11,7 @@
 
 DEBUG   =       1
 
 
 DEBUG   =       1
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 
         .export         sramprep
         .import         __SRPREP_LOAD__, __SRPREPCHNK_LAST__
 
         .export         sramprep
         .import         __SRPREP_LOAD__, __SRPREPCHNK_LAST__
@@ -403,4 +403,4 @@ screen_device_length = * - screen_device
         .word   INITAD+1
         .word   sramprep
 
         .word   INITAD+1
         .word   sramprep
 
-.endif  ; .if .defined(__ATARIXL__)
+.endif  ; .ifdef __ATARIXL__
index b1d80b0c2885acdd507be78414da6808decfe5fd..b01311a4b34b0e40e5492c2109f736e0b367ede2 100644 (file)
@@ -13,7 +13,7 @@
 
 DEBUG  =       1
 
 
 DEBUG  =       1
 
-.if .defined(__ATARIXL__)
+.ifdef __ATARIXL__
 
        .export         syschk
         .import         __SYSCHK_LOAD__
 
        .export         syschk
         .import         __SYSCHK_LOAD__
@@ -154,4 +154,4 @@ end:
         .word   INITAD+1
         .word   syschk
 
         .word   INITAD+1
         .word   syschk
 
-.endif ; .if .defined(__ATARIXL__)
+.endif ; .ifdef __ATARIXL__