Skip to content

Commit

Permalink
attempt to workaround some problems on MEGA65 real hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
FeralChild64 authored and gardners committed Sep 26, 2020
1 parent 4f8ec2f commit 2769b82
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Binary file modified bin/mega65.rom
Binary file not shown.
Binary file modified bin/mega65_pxlfont.rom
Binary file not shown.
4 changes: 2 additions & 2 deletions src/,,config_mega65.s
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
;; #CONFIG# KEY_REPEAT_DEFAULT NO
;; #CONFIG# KEY_REPEAT_ALWAYS NO
;; #CONFIG# KEY_FAST_SCAN YES
;; #CONFIG# JOY1_CURSOR YES
;; #CONFIG# JOY2_CURSOR YES
;; #CONFIG# JOY1_CURSOR NO
;; #CONFIG# JOY2_CURSOR NO

;; #CONFIG# PROGRAMMABLE_KEYS YES

Expand Down
6 changes: 6 additions & 0 deletions src/kernal/interrupts/hw_entry_nmi.s
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ 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

0 comments on commit 2769b82

Please sign in to comment.