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:
ol.sc
2009-09-14 19:58:06 +00:00
parent 29cea09e0d
commit 0c161a6cdd
8 changed files with 32 additions and 6 deletions

21
libsrc/apple2/reboot.s Normal file
View 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