From 3a46f9153565d40836d027cf31f02ac7a7fe0cec Mon Sep 17 00:00:00 2001 From: Kyle J Cardoza Date: Thu, 11 Jul 2024 23:07:11 -0400 Subject: [PATCH] Init work --- src/kernel/cstartup.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kernel/cstartup.s b/src/kernel/cstartup.s index 1200383..ebe3dd2 100755 --- a/src/kernel/cstartup.s +++ b/src/kernel/cstartup.s @@ -32,8 +32,9 @@ .section code, noreorder .pubweak __program_root_section - + __program_root_section: + wdm #0x80 clc xce ; native 16-bit mode rep #0x38 ; 16-bit registers, no decimal mode @@ -89,6 +90,8 @@ __call_heap_initialize: ldx ##.word2 (.sectionSize heap) lda ##.word0 (.sectionSize heap) jsl long:__heap_initialize + + wdm #0x81 .section code, root, noreorder lda ##0 ; argc = 0