From 0100055d51b61b766e937279c978b5c3895d820b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 16 Jan 2015 16:02:44 +0000 Subject: [PATCH] crt0_6502: exit is handled differently to the classic cc65 runtime --- Library/libs/crt0_6502.s | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Library/libs/crt0_6502.s b/Library/libs/crt0_6502.s index a6edfe8d..1cdca238 100644 --- a/Library/libs/crt0_6502.s +++ b/Library/libs/crt0_6502.s @@ -62,12 +62,6 @@ l1: sta _environ ; Call the module destructors. This is also the exit() entry. -_exit: pha - txa - pha - jsr donelib ; Run module destructors - pla - tax - pla +_exit: jmp __exit ; exit syscall, AX holds our return code - ; for a fastcall return to nowhere. \ No newline at end of file + ; for a fastcall return to nowhere. -- 2.34.1