combined boot.s into cstartup.s

This commit is contained in:
Kyle J Cardoza 2024-07-12 00:24:25 -04:00
parent c3015f7e3d
commit 635a7f58a7
1 changed files with 3 additions and 4 deletions

View File

@ -28,6 +28,9 @@
__program_root_section: __program_root_section:
.asciz "WDC" .asciz "WDC"
w65c265s_init: w65c265s_init:
; Begin tracing for the emulator. NOP for the real hardware.
wdm #0x80
; Disable interrupts ; Disable interrupts
sei sei
stz UIER stz UIER
@ -70,8 +73,6 @@ delay_y
tsb PDD6 tsb PDD6
trb PD6 trb PD6
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
@ -128,8 +129,6 @@ __call_heap_initialize:
lda ##.word0 (.sectionSize heap) lda ##.word0 (.sectionSize heap)
jsl long:__heap_initialize jsl long:__heap_initialize
wdm #0x81
.section boot, root, noreorder .section boot, root, noreorder
lda ##0 ; argc = 0 lda ##0 ; argc = 0
jsl long:main jsl long:main