1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

Normalized style.

We don't use .ifndef .else .endif
This commit is contained in:
Oliver Schmidt 2014-06-03 18:30:11 +02:00
parent 7a9ea2189e
commit 2bc4634860
5 changed files with 24 additions and 24 deletions

View File

@ -14,10 +14,10 @@ _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
.ifndef __ATARIXL__ .ifdef __ATARIXL__
jsr @1
.else
jsr KEYBDV_handler jsr KEYBDV_handler
.else
jsr @1
.endif .endif
ldx #0 ldx #0
rts rts

View File

@ -9,10 +9,10 @@
.import popa, _gotoxy, cputdirect, setcursor .import popa, _gotoxy, cputdirect, setcursor
.importzp tmp1 .importzp tmp1
.ifndef __ATARI5200__ .ifdef __ATARI5200__
CHRCODE = $12+64
.else
CHRCODE = 14 CHRCODE = 14
.else
CHRCODE = $12+64
.endif .endif
_chlinexy: _chlinexy:

View File

@ -53,7 +53,14 @@ start:
tsx tsx
stx SP_save 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 ; Report memory usage
@ -72,13 +79,6 @@ start:
sta APPMHI+1 sta APPMHI+1
sta sp+1 ; setup runtime stack part 2 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 .endif
; Call module constructors ; Call module constructors

View File

@ -10,10 +10,10 @@
.import popa, _gotoxy, putchar, setcursor .import popa, _gotoxy, putchar, setcursor
.importzp tmp1 .importzp tmp1
.ifndef __ATARI5200__ .ifdef __ATARI5200__
CHRCODE = $7C ; Vertical bar
.else
CHRCODE = 1 ; exclamation mark CHRCODE = 1 ; exclamation mark
.else
CHRCODE = $7C ; Vertical bar
.endif .endif
_cvlinexy: _cvlinexy:

View File

@ -45,13 +45,7 @@ iocbok: stx tmp4 ; remember IOCB index
ldy #0 ldy #0
sty sspc+1 ; initialize stack space sty sspc+1 ; initialize stack space
.ifndef UCASE_FILENAME .ifdef UCASE_FILENAME
sta ptr3
stx ptr3+1
sty sspc
.else
; uppercase first (old) name and prepend device if needed ; 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 inc sspc+1
ukok4: ukok4:
.else
sta ptr3
stx ptr3+1
sty sspc
.endif .endif
; create a string on the stack with the old filename and the new filename separated by an invalid character (space in our case) ; create a string on the stack with the old filename and the new filename separated by an invalid character (space in our case)