aboutsummaryrefslogtreecommitdiff
path: root/taipan.c
diff options
context:
space:
mode:
Diffstat (limited to 'taipan.c')
-rw-r--r--taipan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/taipan.c b/taipan.c
index 2855589..5726f50 100644
--- a/taipan.c
+++ b/taipan.c
@@ -2097,7 +2097,9 @@ void final_stats(void)
for the xex build, exit(0) gets us back to DOS.
for the cartridge, it returns us to the title screen. */
-#ifndef CART_TARGET
+#ifdef CART_TARGET
+ __asm__("jmp $e477"); /* COLDSV, coldstart vector */
+#else
/* exit(0) works by itself in DOS 2.0S or 2.5, or any DUP.SYS
style DOS that reopens the E: device when entering the menu.
However, command-line DOSes (XL and Sparta) don't do this,
@@ -2111,9 +2113,8 @@ void final_stats(void)
color1save and color2save in newtitle.s. */
POKE(709, PEEK(0xcd));
POKE(710, PEEK(0xce));
-#endif
-
exit(0);
+#endif
}
char have_no_cargo(void) {