mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Use labels instead of segment load addresses to specify entry points
in the EXE file.
This commit is contained in:
parent
53c5a6a668
commit
aac88eac53
@ -52,6 +52,8 @@
|
|||||||
|
|
||||||
; Real entry point:
|
; Real entry point:
|
||||||
|
|
||||||
|
start:
|
||||||
|
|
||||||
.if .defined(__ATARIXL__)
|
.if .defined(__ATARIXL__)
|
||||||
jsr sram_init
|
jsr sram_init
|
||||||
.endif
|
.endif
|
||||||
@ -229,4 +231,4 @@ APPMHI_save: .res 2
|
|||||||
.segment "AUTOSTRT"
|
.segment "AUTOSTRT"
|
||||||
.word RUNAD ; defined in atari.inc
|
.word RUNAD ; defined in atari.inc
|
||||||
.word RUNAD+1
|
.word RUNAD+1
|
||||||
.word __STARTUP_LOAD__ + 1
|
.word start
|
||||||
|
@ -374,6 +374,6 @@ screen_device_length = * - screen_device
|
|||||||
|
|
||||||
.word INITAD
|
.word INITAD
|
||||||
.word INITAD+1
|
.word INITAD+1
|
||||||
.word __SRPREP_LOAD__
|
.word sramprep
|
||||||
|
|
||||||
.endif ; .if .defined(__ATARIXL__)
|
.endif ; .if .defined(__ATARIXL__)
|
||||||
|
@ -71,17 +71,17 @@ cont: ldx #0 ; channel 0
|
|||||||
|
|
||||||
.segment "SYSCHK"
|
.segment "SYSCHK"
|
||||||
|
|
||||||
|
; no XL machine
|
||||||
|
no_xl: print_string "This program needs an XL machine."
|
||||||
|
jmp fail
|
||||||
|
|
||||||
syschk:
|
syschk:
|
||||||
lda $fcd8 ; from ostype.s
|
lda $fcd8 ; from ostype.s
|
||||||
cmp #$a2
|
cmp #$a2
|
||||||
bne is_xl
|
beq no_xl
|
||||||
|
|
||||||
; no XL machine
|
|
||||||
print_string "This program needs an XL machine."
|
|
||||||
jmp fail
|
|
||||||
|
|
||||||
; we have an XL machine, now check memory
|
; we have an XL machine, now check memory
|
||||||
is_xl: lda RAMSIZ
|
lda RAMSIZ
|
||||||
cmp #$80
|
cmp #$80
|
||||||
bcs sys_ok
|
bcs sys_ok
|
||||||
|
|
||||||
@ -148,6 +148,6 @@ loop: dey
|
|||||||
trailer:
|
trailer:
|
||||||
.word INITAD
|
.word INITAD
|
||||||
.word INITAD+1
|
.word INITAD+1
|
||||||
.word __SYSCHK_LOAD__
|
.word syschk
|
||||||
|
|
||||||
.endif ; .if .defined(__ATARIXL__)
|
.endif ; .if .defined(__ATARIXL__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user