From a2bf42fa017f4357aabfc0c2973aa07f44978bd2 Mon Sep 17 00:00:00 2001 From: Kyle J Cardoza Date: Thu, 11 Jul 2024 22:41:46 -0400 Subject: [PATCH] init work --- src/kernel/boot.s | 13 ------------- src/kernel/cstartup.s | 4 ++++ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/kernel/boot.s b/src/kernel/boot.s index 3cf2c3d..10af067 100755 --- a/src/kernel/boot.s +++ b/src/kernel/boot.s @@ -32,19 +32,6 @@ delay_y dey bne delay_y - // Set stack to $001FF - ldx ##0x01FF - txs - - // Set data bank to 0 - lda #0 - pha - plb - - // Set direct page to $0000 - pea #0x0000 - pld - // Enable all the in-use chip select lines. lda #0b11110011 sta PCS7 diff --git a/src/kernel/cstartup.s b/src/kernel/cstartup.s index b5ed82e..1200383 100755 --- a/src/kernel/cstartup.s +++ b/src/kernel/cstartup.s @@ -32,6 +32,7 @@ .section code, noreorder .pubweak __program_root_section + __program_root_section: clc xce ; native 16-bit mode @@ -51,6 +52,7 @@ __program_root_section: .section code, noroot, noreorder .pubweak __data_initialization_needed .extern __initialize_sections + __data_initialization_needed: lda ##.word2 (.sectionEnd data_init_table) sta dp:.tiny(_Dp+6) @@ -66,6 +68,7 @@ __data_initialization_needed: .section code, noroot, noreorder .pubweak __call_initialize_global_streams .extern __initialize_global_streams + __call_initialize_global_streams: jsl long:__initialize_global_streams @@ -73,6 +76,7 @@ __call_initialize_global_streams: .section code, noroot, noreorder .pubweak __call_heap_initialize .extern __heap_initialize, __default_heap + __call_heap_initialize: lda ##.word2 (.sectionStart heap) sta dp:.tiny(_Dp+6)