From: Stephan Mühlstrasser Date: Thu, 5 Feb 2015 22:21:59 +0000 (+0100) Subject: Jump to boot prompt after main program exits. X-Git-Tag: V2.15~22^2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7754c573d8b901f5b904a50dc848edd58e4ff4a9;p=cc65 Jump to boot prompt after main program exits. --- diff --git a/libsrc/osic1p/crt0.s b/libsrc/osic1p/crt0.s index 908943e91..447b65c56 100644 --- a/libsrc/osic1p/crt0.s +++ b/libsrc/osic1p/crt0.s @@ -14,6 +14,7 @@ .include "zeropage.inc" .include "extzp.inc" +.include "osic1p.inc" ; --------------------------------------------------------------------------- ; Place the startup code in a special segment @@ -59,4 +60,4 @@ _init: ldx #$FF ; Initialize stack pointer to $01FF ; Back from main (this is also the _exit entry): force a software break _exit: jsr donelib ; Run destructors - brk + jmp RESET ; Display boot menu after program exit diff --git a/libsrc/osic1p/osic1p.inc b/libsrc/osic1p/osic1p.inc index ad058373a..4ad0e038b 100644 --- a/libsrc/osic1p/osic1p.inc +++ b/libsrc/osic1p/osic1p.inc @@ -2,3 +2,4 @@ SCRNBASE := $D000 ; Base of video RAM VIDEORAMSIZE := $0400 ; Size of C1P video RAM (1 kB) INPUTC := $FD00 ; Input character from keyboard +RESET := $FF00 ; Reset address, show boot prompt \ No newline at end of file