1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Use '.ifdef' and '.ifndef' instead of '.if .defined' and '.if .not .defined'.

This commit is contained in:
Christian Groessler 2013-09-19 22:36:22 +02:00
parent ae53413c5c
commit 0a7cb64d2e
9 changed files with 20 additions and 20 deletions

View File

@ -14,7 +14,7 @@ _cgetc:
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
@ -22,7 +22,7 @@ _cgetc:
ldx #0
rts
.if .not .defined(__ATARIXL__)
.ifndef __ATARIXL__
@1: lda KEYBDV+5
pha
lda KEYBDV+4

View File

@ -16,7 +16,7 @@
.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
@ -34,7 +34,7 @@
.word $FFFF
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.segment "MAINHDR"
.endif
@ -55,7 +55,7 @@
start:
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
jsr sram_init
.endif
@ -68,7 +68,7 @@ start:
tsx
stx spsave
.if .not .defined(__ATARIXL__)
.ifndef __ATARIXL__
; Report memory usage
@ -101,7 +101,7 @@ start:
jsr initlib
.if 0
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.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
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
; 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
.if .not .defined(__ATARIXL__)
.ifndef __ATARIXL__
APPMHI_save: .res 2
.endif

View File

@ -39,7 +39,7 @@ doneirq:
IRQStub:
cld ; Just to be sure
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
pha
lda PORTB
pha
@ -47,7 +47,7 @@ IRQStub:
sta PORTB ; disable ROM @@@ TODO: update CHARGEN
.endif
jsr callirq ; Call the functions
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
pla
sta PORTB
pla

View File

@ -7,7 +7,7 @@
em_libref := _exit
joy_libref := _exit
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.import CIO_handler
tgi_libref := CIO_handler
.else

View File

@ -40,7 +40,7 @@
.export _get_ostype
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.include "atari.inc"
.import __CHARGEN_START__

View File

@ -6,7 +6,7 @@
; Christian Groessler, chris@groessler.org, 2013
;
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.export SAVMSC_save
.export MEMTOP_save

View 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)
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
SHRAM_HANDLERS = 1
.include "atari.inc"
@ -1147,4 +1147,4 @@ orig_len: .res 2
req_len: .res 2
retlen: .res 2
.endif ; .if .defined(__ATARIXL__)
.endif ; .ifdef __ATARIXL__

View File

@ -11,7 +11,7 @@
DEBUG = 1
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.export sramprep
.import __SRPREP_LOAD__, __SRPREPCHNK_LAST__
@ -403,4 +403,4 @@ screen_device_length = * - screen_device
.word INITAD+1
.word sramprep
.endif ; .if .defined(__ATARIXL__)
.endif ; .ifdef __ATARIXL__

View File

@ -13,7 +13,7 @@
DEBUG = 1
.if .defined(__ATARIXL__)
.ifdef __ATARIXL__
.export syschk
.import __SYSCHK_LOAD__
@ -154,4 +154,4 @@ end:
.word INITAD+1
.word syschk
.endif ; .if .defined(__ATARIXL__)
.endif ; .ifdef __ATARIXL__