public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f2ed10
)
crt0_6502: exit is handled differently to the classic cc65 runtime
author
Alan Cox
<alan@linux.intel.com>
Fri, 16 Jan 2015 16:02:44 +0000
(16:02 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 16 Jan 2015 16:02:44 +0000
(16:02 +0000)
Library/libs/crt0_6502.s
patch
|
blob
|
history
diff --git
a/Library/libs/crt0_6502.s
b/Library/libs/crt0_6502.s
index
a6edfe8
..
1cdca23
100644
(file)
--- 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.