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

+27
View File
@@ -0,0 +1,27 @@
// #LAYOUT# M65 KERNAL_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Routine to initialize VIC-IV for entering MEGA65 native mode
//
viciv_init:
// Switch VIC to VIC-IV mode
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
rts