fix(reset): now initializing stack before calling any subroutines.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user