Init work

This commit is contained in:
Kyle J Cardoza 2024-07-11 23:07:11 -04:00
parent a2bf42fa01
commit 3a46f91535
1 changed files with 4 additions and 1 deletions

View File

@ -32,8 +32,9 @@
.section code, noreorder .section code, noreorder
.pubweak __program_root_section .pubweak __program_root_section
__program_root_section: __program_root_section:
wdm #0x80
clc clc
xce ; native 16-bit mode xce ; native 16-bit mode
rep #0x38 ; 16-bit registers, no decimal mode rep #0x38 ; 16-bit registers, no decimal mode
@ -89,6 +90,8 @@ __call_heap_initialize:
ldx ##.word2 (.sectionSize heap) ldx ##.word2 (.sectionSize heap)
lda ##.word0 (.sectionSize heap) lda ##.word0 (.sectionSize heap)
jsl long:__heap_initialize jsl long:__heap_initialize
wdm #0x81
.section code, root, noreorder .section code, root, noreorder
lda ##0 ; argc = 0 lda ##0 ; argc = 0