combined boot.s into cstartup.s

This commit is contained in:
Kyle J Cardoza 2024-07-12 00:21:47 -04:00
parent 70988d6df1
commit c3015f7e3d
1 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@
__program_root_section: __program_root_section:
.asciz "WDC" .asciz "WDC"
w65c265s_init: w65c265s_init:
// Disable interrupts ; Disable interrupts
sei sei
stz UIER stz UIER
stz TIER stz TIER
@ -36,26 +36,26 @@ w65c265s_init:
short_a short_a
long_i long_i
// We reset the VERA at boot. So P4.2 is an output, held ; We reset the VERA at boot. So P4.2 is an output, held
// low until later in the boot sequence. ; low until later in the boot sequence.
lda #1 << 2 lda #1 << 2
trb PD4 trb PD4
tsb PDD4 tsb PDD4
// Now we delay a while. ; Now we delay a while.
ldy ##0x0FFF ldy ##0x0FFF
delay_y delay_y
dey dey
bne delay_y bne delay_y
// Enable all the in-use chip select lines. ; Enable all the in-use chip select lines.
lda #0b11110011 lda #0b11110011
sta PCS7 sta PCS7
// Disable the on-CPU ROM ; Disable the on-CPU ROM
w65c265s_rom_off w65c265s_rom_off
// Disable the on-CPU RAM ; Disable the on-CPU RAM
w65c265s_sram_off w65c265s_sram_off
; Set P5.4 and P5.5 as output ; Set P5.4 and P5.5 as output