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

+2 -2
View File
@@ -61,8 +61,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
+8
View File
@@ -71,6 +71,14 @@
!addr VIC_CLKRATE = $D030 ; C128 only
} }
!ifdef CONFIG_MB_U64 {
; Ultimate 64 registers
!addr U64_TURBOBIT = $D030 ; 0 = 1 MHz + badlines, 1 = settings from menu
!addr U64_TURBOCTL = $D031 ; bit 0-3 = CPU speed (index), bit 7 = disable badlines, $FF = not available
}
; SID registers
!addr __SID_BASE = $D400 ; base address of the chip
+13 -1
View File
@@ -16,7 +16,7 @@
!pet "open roms generic build"
} else ifdef CONFIG_BRAND_TESTING {
!pet "open roms testing build"
} else ifdef CONFIG_BRAND_ULTIMATE_64 {
} else ifdef CONFIG_MB_U64 {
!pet "open roms for ultimate 64"
}
@@ -43,9 +43,21 @@ rainbow_logo:
!set SET_COLOR_3 = $1E
!set SET_COLOR_4 = $9F
!ifdef CONFIG_MB_U64 {
!byte SET_COLOR_1, $B8, $B8, $B8, $B8, $B8, $B8, $B8, $0D
!byte SET_COLOR_2, $B8, $B8, $B8, $B8, $B8, $B8, $B8, $0D
!byte SET_COLOR_3, $B8, $B8, $B8, $B8, $B8, $B8, $B8, $0D
!byte SET_COLOR_4, $B8, $B8, $B8, $B8, $B8, $B8, $B8, $0D
!byte SET_COLOR_0, $00
} else {
!byte SET_COLOR_1, $12, $A4, $A4, $A4, $A4, $A4, $A4, $A4, $0D
!byte SET_COLOR_2, $12, $A4, $A4, $A4, $A4, $A4, $A4, $0D
!byte SET_COLOR_3, $12, $A4, $A4, $A4, $A4, $A4, $0D
!byte SET_COLOR_4, $12, $A4, $A4, $A4, $A4, $92
!byte SET_COLOR_0, $00
}
}
+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 {