mirror of
https://github.com/cc65/cc65.git
synced 2024-09-29 02:55:20 +00:00
Use '.ifdef' and '.ifndef' instead of '.if .defined' and '.if .not .defined'.
This commit is contained in:
parent
ae53413c5c
commit
0a7cb64d2e
@ -14,7 +14,7 @@ _cgetc:
|
|||||||
jsr setcursor
|
jsr setcursor
|
||||||
lda #12
|
lda #12
|
||||||
sta ICAX1Z ; fix problems with direct call to KEYBDV
|
sta ICAX1Z ; fix problems with direct call to KEYBDV
|
||||||
.if .not .defined(__ATARIXL__)
|
.ifndef __ATARIXL__
|
||||||
jsr @1
|
jsr @1
|
||||||
.else
|
.else
|
||||||
jsr KEYBDV_handler
|
jsr KEYBDV_handler
|
||||||
@ -22,7 +22,7 @@ _cgetc:
|
|||||||
ldx #0
|
ldx #0
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.if .not .defined(__ATARIXL__)
|
.ifndef __ATARIXL__
|
||||||
@1: lda KEYBDV+5
|
@1: lda KEYBDV+5
|
||||||
pha
|
pha
|
||||||
lda KEYBDV+4
|
lda KEYBDV+4
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
.import __STARTUP_LOAD__, __BSS_LOAD__
|
.import __STARTUP_LOAD__, __BSS_LOAD__
|
||||||
.import __RESERVED_MEMORY__
|
.import __RESERVED_MEMORY__
|
||||||
.import __RAM_START__, __RAM_SIZE__
|
.import __RAM_START__, __RAM_SIZE__
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
.import __STACKSIZE__
|
.import __STACKSIZE__
|
||||||
.import sram_init
|
.import sram_init
|
||||||
.import scrdev
|
.import scrdev
|
||||||
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
.word $FFFF
|
.word $FFFF
|
||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
.segment "MAINHDR"
|
.segment "MAINHDR"
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
start:
|
start:
|
||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
jsr sram_init
|
jsr sram_init
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ start:
|
|||||||
tsx
|
tsx
|
||||||
stx spsave
|
stx spsave
|
||||||
|
|
||||||
.if .not .defined(__ATARIXL__)
|
.ifndef __ATARIXL__
|
||||||
|
|
||||||
; Report memory usage
|
; Report memory usage
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ start:
|
|||||||
jsr initlib
|
jsr initlib
|
||||||
|
|
||||||
.if 0
|
.if 0
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
.import __heapadd
|
.import __heapadd
|
||||||
.import pushax
|
.import pushax
|
||||||
.import __RAM_BELOW_ROM_START__
|
.import __RAM_BELOW_ROM_START__
|
||||||
@ -165,7 +165,7 @@ _exit: jsr donelib ; Run module destructors
|
|||||||
lda APPMHI_save+1
|
lda APPMHI_save+1
|
||||||
sta APPMHI+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
|
spsave: .res 1
|
||||||
old_shflok: .res 1
|
old_shflok: .res 1
|
||||||
old_lmargin: .res 1
|
old_lmargin: .res 1
|
||||||
.if .not .defined(__ATARIXL__)
|
.ifndef __ATARIXL__
|
||||||
APPMHI_save: .res 2
|
APPMHI_save: .res 2
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ doneirq:
|
|||||||
|
|
||||||
IRQStub:
|
IRQStub:
|
||||||
cld ; Just to be sure
|
cld ; Just to be sure
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
pha
|
pha
|
||||||
lda PORTB
|
lda PORTB
|
||||||
pha
|
pha
|
||||||
@ -47,7 +47,7 @@ IRQStub:
|
|||||||
sta PORTB ; disable ROM @@@ TODO: update CHARGEN
|
sta PORTB ; disable ROM @@@ TODO: update CHARGEN
|
||||||
.endif
|
.endif
|
||||||
jsr callirq ; Call the functions
|
jsr callirq ; Call the functions
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
pla
|
pla
|
||||||
sta PORTB
|
sta PORTB
|
||||||
pla
|
pla
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
em_libref := _exit
|
em_libref := _exit
|
||||||
joy_libref := _exit
|
joy_libref := _exit
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
.import CIO_handler
|
.import CIO_handler
|
||||||
tgi_libref := CIO_handler
|
tgi_libref := CIO_handler
|
||||||
.else
|
.else
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
.export _get_ostype
|
.export _get_ostype
|
||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
|
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
.import __CHARGEN_START__
|
.import __CHARGEN_START__
|
||||||
|
@ -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 SAVMSC_save
|
||||||
.export MEMTOP_save
|
.export MEMTOP_save
|
||||||
|
@ -8,7 +8,7 @@ DEBUG = 1
|
|||||||
USEWSYNC= 1
|
USEWSYNC= 1
|
||||||
CHKBUF = 1 ; check if bounce buffering is needed (bounce buffering is always done if set to 0)
|
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
|
SHRAM_HANDLERS = 1
|
||||||
.include "atari.inc"
|
.include "atari.inc"
|
||||||
@ -1147,4 +1147,4 @@ orig_len: .res 2
|
|||||||
req_len: .res 2
|
req_len: .res 2
|
||||||
retlen: .res 2
|
retlen: .res 2
|
||||||
|
|
||||||
.endif ; .if .defined(__ATARIXL__)
|
.endif ; .ifdef __ATARIXL__
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
DEBUG = 1
|
DEBUG = 1
|
||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
|
|
||||||
.export sramprep
|
.export sramprep
|
||||||
.import __SRPREP_LOAD__, __SRPREPCHNK_LAST__
|
.import __SRPREP_LOAD__, __SRPREPCHNK_LAST__
|
||||||
@ -403,4 +403,4 @@ screen_device_length = * - screen_device
|
|||||||
.word INITAD+1
|
.word INITAD+1
|
||||||
.word sramprep
|
.word sramprep
|
||||||
|
|
||||||
.endif ; .if .defined(__ATARIXL__)
|
.endif ; .ifdef __ATARIXL__
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
DEBUG = 1
|
DEBUG = 1
|
||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.ifdef __ATARIXL__
|
||||||
|
|
||||||
.export syschk
|
.export syschk
|
||||||
.import __SYSCHK_LOAD__
|
.import __SYSCHK_LOAD__
|
||||||
@ -154,4 +154,4 @@ end:
|
|||||||
.word INITAD+1
|
.word INITAD+1
|
||||||
.word syschk
|
.word syschk
|
||||||
|
|
||||||
.endif ; .if .defined(__ATARIXL__)
|
.endif ; .ifdef __ATARIXL__
|
||||||
|
Loading…
Reference in New Issue
Block a user