public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7435c06
)
crt0_6502: update to reflect proposed ABI
author
Alan Cox
<alan@linux.intel.com>
Fri, 16 Jan 2015 15:43:21 +0000
(15:43 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 16 Jan 2015 15:43:21 +0000
(15:43 +0000)
Library/libs/crt0_6502.s
patch
|
blob
|
history
diff --git
a/Library/libs/crt0_6502.s
b/Library/libs/crt0_6502.s
index
94db7cc
..
a6edfe8
100644
(file)
--- a/
Library/libs/crt0_6502.s
+++ b/
Library/libs/crt0_6502.s
@@
-11,6
+11,7
@@
.import __DATA_SIZE__, __BSS_SIZE__
.import __exit
.import _environ
+ .import _main
.include "zeropage.inc"
@@
-48,8
+49,8
@@
start:
; Need to save the environment ptr. The rest of the stack should be
; fine.
;
- lda
_
sp
- ldx
_
sp+1
+ lda sp
+ ldx sp+1
clc
adc #4
bcc l1
@@
-57,7
+58,7
@@
start:
l1: sta _environ
stx _environ+1
ldy #4
- jsr
call
main
+ jsr
_
main
; Call the module destructors. This is also the exit() entry.