fix(reset): now initializing stack before calling any subroutines.
This commit is contained in:
@@ -18,8 +18,7 @@
|
||||
EXPORT RESET
|
||||
|
||||
RESET
|
||||
orcc #$50 ; Mask IRQ and FIRQ
|
||||
jsr INITUART ; Initialize serial console
|
||||
orcc #$50 ; Mask IRQ and FIRQ
|
||||
|
||||
CLRSTACK
|
||||
; Initialize the system stack
|
||||
@@ -33,7 +32,8 @@ NEXT@
|
||||
lds #STACK_TOP ; Set S to top of newly cleared stack
|
||||
|
||||
BOOTSCR
|
||||
ldx #VERMSG
|
||||
jsr INITUART ; Initialize serial console
|
||||
ldx #VERMSG ; Print version information
|
||||
jsr POUTZSTR
|
||||
|
||||
; Progress to POST
|
||||
|
Reference in New Issue
Block a user