improved C128 hardware handling

This commit is contained in:
FeralChild64 committed 2020-10-11 11:56:16 +02:00
1 parent 4eb0923f9c
commit 121f49b763
3 files changed
+20 -13

No files matched your search

+7
View File
@@ -269,6 +269,13 @@
;
; Handle platform/mothjerboard configuration
!ifdef PLATFORM_COMMODORE_64 { !ifndef CONFIG_MB_M65 { !ifndef CONFIG_MB_U64 {
!set HAS_128_POSSIBILITY = 1
} } }
; Handle CPU configuration
-12
View File
@@ -31,18 +31,6 @@ vicii_init:
dex
bpl @1
!ifndef CONFIG_MB_M65 { !ifndef CONFIG_MB_U64 {
; Disable C128 extra keys - just to be sure they will not interfere with anything
stx VIC_XSCAN ; store $FF
; Disable the C128 2MHz mode, it prevents VIC-II display from working correctly
inx
stx VIC_CLKRATE ; store $00
} }
; Set up default IO values
; - [CM64] page 129 - VIC_SCROLY
; - [CM64] pages 140-144 - VIC_SCROLX
+13 -1
View File
@@ -62,7 +62,7 @@ IOINIT_skip_DOS:
stx CIA1_PRA ; $DC00
;
; Now silence the SID chip(s), depending on the configuration - we want them silent ASAP
; Silence the SID chip(s), depending on the configuration - we want them silent ASAP
;
lda #$00
@@ -135,6 +135,18 @@ IOINIT_skip_DOS:
stx CIA1_DDRB ; $DC03
stx CIA2_DDRB ; $DD03 ; XXX this port is used for RS-232, value here is most likely wrong!
!ifdef HAS_128_POSSIBILITY {
; Disable C128 extra keys - just to be sure they will not interfere with anything
stx VIC_XSCAN ; store $FF
; Disable the C128 2MHz mode, it prevents VIC-II display from working correctly
inx
stx VIC_CLKRATE ; store $00
}
!ifdef CONFIG_KEYBOARD_C65_OR_CAPS_LOCK {
lda #$02