From 5b659547b8f1e9bafe7482d03d56204e9837051d Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 1 Jan 2012 19:58:31 +0000 Subject: [PATCH] Removed the jump to RESTOR on exit for all the CBM platforms. git-svn-id: svn://svn.cc65.org/cc65/trunk@5355 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/crt0.s | 4 ++-- libsrc/c16/crt0.s | 4 ++-- libsrc/c64/crt0.s | 4 ++-- libsrc/plus4/crt0.s | 5 ++--- libsrc/vic20/crt0.s | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/libsrc/c128/crt0.s b/libsrc/c128/crt0.s index 97cad58fa..5185e2c83 100644 --- a/libsrc/c128/crt0.s +++ b/libsrc/c128/crt0.s @@ -132,9 +132,9 @@ L2: lda zpsave,x ldx mmusave stx MMU_CR -; Done, restore kernal vectors in an attempt to cleanup +; Done, return to BASIC - jmp RESTOR + rts ; ------------------------------------------------------------------------ ; The C128 has ROM parallel to the RAM starting from $4000. The startup code diff --git a/libsrc/c16/crt0.s b/libsrc/c16/crt0.s index 21f31bb68..71e7b0cf8 100644 --- a/libsrc/c16/crt0.s +++ b/libsrc/c16/crt0.s @@ -112,9 +112,9 @@ L2: lda zpsave,x ldx spsave txs -; Reset changed vectors +; Back to BASIC - jmp RESTOR + rts ; ------------------------------------------------------------------------ ; The IRQ vector jumps here, if condes routines are defined with type 2. diff --git a/libsrc/c64/crt0.s b/libsrc/c64/crt0.s index a513b1f73..c9fee2031 100644 --- a/libsrc/c64/crt0.s +++ b/libsrc/c64/crt0.s @@ -121,9 +121,9 @@ L2: lda zpsave,x ldx mmusave stx $01 ; Restore memory configuration -; Reset changed vectors, back to basic +; Back to basic - jmp RESTOR + rts ; ------------------------------------------------------------------------ ; The IRQ vector jumps here, if condes routines are defined with type 2. diff --git a/libsrc/plus4/crt0.s b/libsrc/plus4/crt0.s index a838854ad..0592cca7e 100644 --- a/libsrc/plus4/crt0.s +++ b/libsrc/plus4/crt0.s @@ -112,11 +112,10 @@ L2: lda zpsave,x ldx spsave txs -; Enable the ROM, reset changed vectors and return to BASIC +; Enable the ROM and return to BASIC sta ENABLE_ROM - jmp $FF8A ; RESTOR - + rts ; ------------------------------------------------------------------------ ; IRQ handler. The handler in the ROM enables the kernal and jumps to diff --git a/libsrc/vic20/crt0.s b/libsrc/vic20/crt0.s index f2b01c9e8..944fabe48 100644 --- a/libsrc/vic20/crt0.s +++ b/libsrc/vic20/crt0.s @@ -106,9 +106,9 @@ L2: lda zpsave,x ldx spsave txs -; Reset changed vectors, back to basic +; Back to basic - jmp RESTOR + rts ; ------------------------------------------------------------------------