reset-related fixes
This commit is contained in:
1 parent
44e2498a8c
commit
79c094dce5
3 files changed
+23
-14
No files matched your search
@@ -15,16 +15,12 @@ hw_entry_nmi:
|
||||
; Call interrupt routine (only if initialised)
|
||||
pha
|
||||
|
||||
!ifndef CONFIG_MB_M65 { ; XXX temporarily disabled for MEGA65, seems to cause crash during startup - to be investigated
|
||||
|
||||
lda NMINV+1 ; consider zeropage NMI address as uninitialized vector
|
||||
beq @1 ; this allows safer interrupt vector modifications
|
||||
pla
|
||||
jmp (NMINV)
|
||||
@1:
|
||||
|
||||
}
|
||||
|
||||
; Vector not initialized - call default interrupt routine
|
||||
pla
|
||||
jmp default_nmi_handler
|
||||
Reference in new issue
Block a user