1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00
cc65/libsrc/none/crt0.s

22 lines
507 B
ArmAsm
Raw Normal View History

2018-01-04 11:07:35 +00:00
.export _exit
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import zerobss, _main
.import initlib, donelib
.import __STACKSTART__ ; Linker generated
2018-01-04 11:07:35 +00:00
.include "zeropage.inc"
.segment "STARTUP"
2018-01-04 21:14:01 +00:00
lda #<__STACKSTART__
ldx #>__STACKSTART__
2018-01-04 11:07:35 +00:00
sta sp
stx sp+1
jsr zerobss
jsr initlib
jsr _main
_exit: pha
jsr donelib
pla
rts