Now that cc65 programs can run as SYS files themselves my ProDOS Loader ulimately has to change from a minimalistic shell replacement to a pure loader (without exit hook). This approach simplifies several things. However the "reboot after exit" option now present as a ProDOS Loader variant has to move into the cc65 program.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4172 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
21
libsrc/apple2/reboot.s
Normal file
21
libsrc/apple2/reboot.s
Normal file
@@ -0,0 +1,21 @@
|
||||
;
|
||||
; Oliver Schmidt, 14.09.2009
|
||||
;
|
||||
; void rebootafterexit (void);
|
||||
;
|
||||
|
||||
.constructor initreboot
|
||||
.export _rebootafterexit
|
||||
.import done, return
|
||||
|
||||
_rebootafterexit := return
|
||||
|
||||
.segment "INIT"
|
||||
|
||||
initreboot:
|
||||
; Quit to PWRUP
|
||||
lda #<$FAA6
|
||||
ldx #>$FAA6
|
||||
sta done
|
||||
stx done+1
|
||||
rts
|
||||
Reference in New Issue
Block a user