init work
This commit is contained in:
parent
b9429bd07d
commit
65975d61fb
|
@ -60,14 +60,14 @@ __data_initialization_needed:
|
|||
sta dp:.tiny(_Dp+2)
|
||||
lda ##.word0 (.sectionStart data_init_table)
|
||||
sta dp:.tiny(_Dp+0)
|
||||
call __initialize_sections
|
||||
jsl long:__initialize_sections
|
||||
|
||||
;;; **** Initialize streams if needed.
|
||||
.section code, noroot, noreorder
|
||||
.pubweak __call_initialize_global_streams
|
||||
.extern __initialize_global_streams
|
||||
__call_initialize_global_streams:
|
||||
call __initialize_global_streams
|
||||
jsl long:__initialize_global_streams
|
||||
|
||||
;;; **** Initialize heap if needed.
|
||||
.section code, noroot, noreorder
|
||||
|
@ -84,9 +84,9 @@ __call_heap_initialize:
|
|||
sta dp:.tiny(_Dp+0)
|
||||
ldx ##.word2 (.sectionSize heap)
|
||||
lda ##.word0 (.sectionSize heap)
|
||||
call __heap_initialize
|
||||
jsl long:__heap_initialize
|
||||
|
||||
.section code, root, noreorder
|
||||
lda ##0 ; argc = 0
|
||||
jsl long:main
|
||||
jump exit
|
||||
jmp long:exit
|
Loading…
Reference in New Issue