2 ; Oliver Schmidt, 2013-05-16
4 ; Startup code for cc65 (sim6502 version)
8 .export __STARTUP__ : absolute = 1 ; Mark as startup
9 .import zerobss, callmain
10 .import initlib, donelib
12 .import __RAM_START__, __RAM_SIZE__ ; Linker generated
13 .import __STACKSIZE__ ; Linker generated
15 .include "zeropage.inc"
22 lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
23 ldx #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)