init work

This commit is contained in:
Kyle J Cardoza 2024-07-11 22:36:52 -04:00
parent b9429bd07d
commit 65975d61fb
1 changed files with 4 additions and 4 deletions

View File

@ -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