crt0_6502: exit is handled differently to the classic cc65 runtime
authorAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 16:02:44 +0000 (16:02 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 16:02:44 +0000 (16:02 +0000)
Library/libs/crt0_6502.s

index a6edfe8..1cdca23 100644 (file)
@@ -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.