mirror of
https://github.com/cc65/cc65.git
synced 2026-04-20 02:17:07 +00:00
Move initialization code into the init segment
git-svn-id: svn://svn.cc65.org/cc65/trunk@3404 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -27,7 +27,7 @@ __heaplast:
|
||||
|
||||
; Initialization. Will be called from startup!
|
||||
|
||||
.code
|
||||
.segment "INIT"
|
||||
|
||||
initheap:
|
||||
sec
|
||||
@@ -39,3 +39,4 @@ initheap:
|
||||
sta __heapend+1
|
||||
rts
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 17.09.1998
|
||||
; Ullrich von Bassewitz, 1998-09-17, 2005-02-26.
|
||||
;
|
||||
; Zero the bss segment.
|
||||
;
|
||||
@@ -9,7 +9,7 @@
|
||||
.importzp ptr1
|
||||
|
||||
|
||||
.code
|
||||
.segment "INIT"
|
||||
|
||||
zerobss:
|
||||
lda #<__BSS_RUN__
|
||||
|
||||
Reference in New Issue
Block a user