switching from MEGA65 native mode to legacy mode works now

This commit is contained in:
FeralChild64 committed 2020-08-28 23:15:17 +02:00
1 parent 0ed000de30
commit 64ae9ad75b
7 files changed
+74 -41

No files matched your search

+3 -14
View File
@@ -8,8 +8,6 @@ M65_MODE64:
sei
// XXX provide full implementation - switch back to normal text mode
// Set the magic string to mark legacy mode
lda #$00
@@ -17,19 +15,10 @@ M65_MODE64:
sta M65_MAGICSTR+1
sta M65_MAGICSTR+2
// Reenable badlines and slow interrupt emulation
// Restore VIC-II configuration
lda #$03
sta MISC_EMU
// Set misc VIC-IV flags
lda %00000000 // enable C64 character set
sta VIC_CTRLA
// Switch to VIC-II mode
sta VIC_KEY
jsr viciv_shutdown
jsr setup_vicii
// Reenable interrupts
+3 -19
View File
@@ -21,27 +21,11 @@ M65_MODE65:
lda #$35 // '5'
sta M65_MAGICSTR+2
// XXX find a better place for code below
// Initialize VIC-IV
// Switch VIC to VIC-IV mode
jsr viciv_init
jsr viciv_unhide
// Disable badlines and slow interrupt emulation
lda #$00
sta MISC_EMU
// Set misc VIC-IV flags
lda %01000000 // enable C65 character set
sta VIC_CTRLA
// XXX enable 48 MHz mode in VIC_CTRLC
// XXX posibly alter other settings
// Set screen mode to 80x25
// Set screen mode to 80x50
lda #$02
jsr m65_scrmodeset_internal