no-badline tape loading for Mega65, some macro fixes
This commit is contained in:
1 parent
df00cc507d
commit
1f5f43b211
13 files changed
+75
-21
No files matched your search
@@ -17,7 +17,7 @@ tape_common_autodetect:
|
||||
lda #$0B
|
||||
sta VIC_EXTCOL
|
||||
lda #$00
|
||||
#if CONFIG_MB_MEGA65
|
||||
#if CONFIG_MB_MEGA_65
|
||||
sta SID_SIGVOL + __SID_R1_OFFSET
|
||||
sta SID_SIGVOL + __SID_L1_OFFSET
|
||||
#else
|
||||
|
||||
@@ -16,7 +16,7 @@ tape_clean_sid:
|
||||
ldy #$1C
|
||||
!:
|
||||
|
||||
#if CONFIG_MB_MEGA65
|
||||
#if CONFIG_MB_MEGA_65
|
||||
|
||||
// It should be safer than cleaning whole $D400-D47C range
|
||||
|
||||
|
||||
@@ -21,8 +21,23 @@ tape_screen_on_motor_off:
|
||||
lda COLSTORE
|
||||
sta VIC_EXTCOL
|
||||
|
||||
#if !CONFIG_MB_MEGA_65
|
||||
|
||||
jmp screen_on
|
||||
|
||||
#else
|
||||
|
||||
// On Mega65 just reenable badline emulation
|
||||
|
||||
lda #$FF
|
||||
sta M65_BADL_SLI
|
||||
sta VIC_KEY
|
||||
|
||||
rts
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
tape_screen_off_motor_on:
|
||||
|
||||
// We do not want interrupts and CHROUT reenables them
|
||||
@@ -36,7 +51,22 @@ tape_screen_off_motor_on:
|
||||
lda VIC_EXTCOL
|
||||
sta COLSTORE
|
||||
|
||||
#if !CONFIG_MB_MEGA_65
|
||||
|
||||
jsr screen_off
|
||||
|
||||
#else
|
||||
|
||||
// On Mega65 we do not have to turn the screen off;
|
||||
// it is enough to disable badline emulation
|
||||
|
||||
jsr mega65_unhide
|
||||
lda #$00
|
||||
sta M65_BADL_SLI
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
jmp tape_motor_on
|
||||
|
||||
#endif
|
||||
@@ -23,7 +23,7 @@ tape_turbo_get_bit:
|
||||
sta __turbo_half_S // store half of the last measurement result for short pulse
|
||||
|
||||
lda #$01
|
||||
#if CONFIG_MB_MEGA65
|
||||
#if CONFIG_MB_MEGA_65
|
||||
sta SID_SIGVOL + __SID_R1_OFFSET
|
||||
sta SID_SIGVOL + __SID_L1_OFFSET
|
||||
#else
|
||||
@@ -39,7 +39,7 @@ tape_turbo_get_bit:
|
||||
sta __turbo_half_L // store half of the last measurement result for long pulse
|
||||
|
||||
lda #$00
|
||||
#if CONFIG_MB_MEGA65
|
||||
#if CONFIG_MB_MEGA_65
|
||||
sta SID_SIGVOL + __SID_R1_OFFSET
|
||||
sta SID_SIGVOL + __SID_L1_OFFSET
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user