improved tape support with Mega65 native mode

This commit is contained in:
FeralChild64 committed 2020-08-08 16:09:03 +02:00
1 parent 11aa1f114a
commit ffdc67d5ca
8 files changed
+49 -50

No files matched your search

+9 -18
View File
@@ -11,8 +11,6 @@
#if CONFIG_TAPE_NORMAL || CONFIG_TAPE_TURBO
// XXX for Mega65 do not disable screen, just disable badline emulation
tape_screen_on_motor_off:
@@ -21,18 +19,14 @@ tape_screen_on_motor_off:
lda COLSTORE
sta VIC_EXTCOL
#if !CONFIG_MB_MEGA_65
#if !ROM_LAYOUT_M65
jmp screen_on
#else
// On Mega65 just reenable badline emulation
lda #$FF
sta M65_BADL_SLI
sta VIC_KEY
jsr M65_ISMODE65
bne_16 screen_on // MEGA65 native mode does not have badlines, no need to enable/disable screen
rts
#endif
@@ -51,22 +45,19 @@ tape_screen_off_motor_on:
lda VIC_EXTCOL
sta COLSTORE
#if !CONFIG_MB_MEGA_65
#if !ROM_LAYOUT_M65
jsr screen_off
#else
// On Mega65 we do not have to turn the screen off;
// it is enough to disable badline emulation
jsr viciv_unhide
lda #$00
sta M65_BADL_SLI
jsr M65_ISMODE65
beq !+ // MEGA65 native mode does not have badlines, no need to enable/disable screen
jsr screen_off
!:
#endif
jmp tape_motor_on
#endif