various Ultimate 64 improvements

This commit is contained in:
FeralChild64 committed 2020-10-06 23:59:30 +02:00
1 parent 219916aa4e
commit 2b9e8650de
4 files changed
+37 -7

No files matched your search

+14 -4
View File
@@ -9,17 +9,27 @@
} else ifdef CONFIG_MB_U64 {
; Command implementation for Ultimate 64 - SuperCPU compatible way should be enough
; Command implementation for Ultimate 64
cmd_slow:
sta SCPU_SPEED_NORMAL
lda #$00 ; for U64_TURBOCTL - badlines, 1MHz
sta SCPU_SPEED_NORMAL ; any value will do
; FALLTROUGH
cmd_slow_fast_common:
sta U64_TURBOBIT ; only bit 0 matters
sta U64_TURBOCTL
rts
cmd_fast:
sta SCPU_SPEED_TURBO
rts
lda #$0F ; for U64_TURBOCTL - badlines, 48MHz
sta SCPU_SPEED_TURBO ; any value will do
bne cmd_slow_fast_common ; bramnch always
} else ifdef CONFIG_PLATFORM_COMMODORE_64 {