improved C128 hardware handling
This commit is contained in:
1 parent
4eb0923f9c
commit
121f49b763
3 files changed
+20
-13
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user