diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) { |