for MEGA65 disabled FAST/SLOW commands in native mode

This commit is contained in:
FeralChild64 committed 2020-10-10 16:21:41 +02:00
1 parent 3b0f38e6b2
commit 5c5c14f76a
11 files changed
+62 -48

No files matched your search

@@ -5,6 +5,32 @@
!ifdef CONFIG_MB_M65 {
; NOTE: In native mode the system should not run at 1 MHz speed - it's dangerous,
; as it uses compound instructions, which are not safe in 1MHz mode
cmd_slow: ; set CPU speed to 1 MHz
jsr helper_ensure_legacy_mode
lda #$40
bra cmd_slow_fast_common
; FALLTROUGH
cmd_fast: ; set CPU speed to 40 MHz
jsr helper_ensure_legacy_mode
lda #$41
; FALLTROUGH
cmd_slow_fast_common:
sta CPU_D6510
rts
; For MEGA65 Kernal routines are called directly
} else ifdef CONFIG_MB_U64 {