toggling character sets now works in MEGA65 native mode too

This commit is contained in:
FeralChild64 committed 2020-08-31 21:09:54 +02:00
1 parent 1d4c953cee
commit c1b3026976
9 files changed
+123 -31

No files matched your search

+25 -1
View File
@@ -74,12 +74,36 @@ scnkey_toggle_if_needed: // entry for SCNKEY (TWW/CTR version)
lda LSTSHF
and #$03
cmp #$03
beq !+ // alreeady toggled
beq !+ // already toggled
// Toggle char set
#if ROM_LAYOUT_M65
jsr M65_MODEGET
bcc !++
// Toggling charsets for C64 mode
lda VIC_YMCSB
eor #$02
sta VIC_YMCSB
!:
rts
// Toggling charsets for M65 mode
!:
lda VIC_CHARPTR+1
eor #%00001000
sta VIC_CHARPTR+1
rts
#else
lda VIC_YMCSB
eor #$02
sta VIC_YMCSB
!:
rts
#endif