;
+; Oliver Schmidt, 15.09.2009
+;
; Startup code for cc65 (Apple2 version)
;
- .export _exit
+ .export _exit, done, return
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import zerobss
.import initlib, donelib
; Check ProDOS system bit map
lda $BF6F ; protection for pages $B8 - $BF
- cmp #%00000001 ; exactly page $BF is protected
+ cmp #%00000001 ; exactly system global page is protected
bne basic
; No BASIC.SYSTEM so quit to ProDOS dispatcher instead
sta SOFTEV+1
eor #$A5
sta PWREDUP
- rts
+return: rts
; Quit to ProDOS dispatcher
quit: jsr $BF00 ; MLI call entry point