1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-15 07:31:32 +00:00

Renamed program start label.

This commit is contained in:
Oliver Schmidt 2019-05-30 00:06:31 +02:00
parent 7e4c4ee53e
commit c6bbea0bb0
2 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,7 @@
; ;
.export _exit .export _exit
.export sim65start .export startup
.export __STARTUP__ : absolute = 1 ; Mark as startup .export __STARTUP__ : absolute = 1 ; Mark as startup
.import zerobss, callmain .import zerobss, callmain
.import initlib, donelib .import initlib, donelib
@ -17,8 +17,7 @@
.segment "STARTUP" .segment "STARTUP"
sim65start: startup:cld
cld
ldx #$FF ldx #$FF
txs txs
lda #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__) lda #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)

View File

@ -7,7 +7,7 @@
.export __EXEHDR__ : absolute = 1 ; Linker referenced .export __EXEHDR__ : absolute = 1 ; Linker referenced
.importzp sp .importzp sp
.import __MAIN_START__ .import __MAIN_START__
.import sim65start .import startup
.segment "EXEHDR" .segment "EXEHDR"
@ -16,4 +16,4 @@
.byte .defined(__SIM65C02__) ; CPU type .byte .defined(__SIM65C02__) ; CPU type
.byte sp ; sp address .byte sp ; sp address
.addr __MAIN_START__ ; load address .addr __MAIN_START__ ; load address
.addr sim65start ; reset address .addr startup ; reset address