fix(reset): now initializing stack before calling any subroutines.

This commit is contained in:
2025-09-11 15:12:21 -05:00
parent a0b654f160
commit 0de0dd5cbd

View File

@@ -18,8 +18,7 @@
EXPORT RESET EXPORT RESET
RESET RESET
orcc #$50 ; Mask IRQ and FIRQ orcc #$50 ; Mask IRQ and FIRQ
jsr INITUART ; Initialize serial console
CLRSTACK CLRSTACK
; Initialize the system stack ; Initialize the system stack
@@ -33,7 +32,8 @@ NEXT@
lds #STACK_TOP ; Set S to top of newly cleared stack lds #STACK_TOP ; Set S to top of newly cleared stack
BOOTSCR BOOTSCR
ldx #VERMSG jsr INITUART ; Initialize serial console
ldx #VERMSG ; Print version information
jsr POUTZSTR jsr POUTZSTR
; Progress to POST ; Progress to POST