From 7754c573d8b901f5b904a50dc848edd58e4ff4a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BChlstrasser?= Date: Thu, 5 Feb 2015 23:21:59 +0100 Subject: [PATCH] Jump to boot prompt after main program exits. --- libsrc/osic1p/crt0.s | 3 ++- libsrc/osic1p/osic1p.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5