turbo tape now adjusts it's reading speed dynamically

This commit is contained in:
FeralChild64 committed 2020-01-16 18:51:58 +01:00
1 parent f922f90653
commit 815dbe5f35
12 files changed
+75 -113

No files matched your search

+9 -8
View File
@@ -31,16 +31,13 @@ tape_turbo_get_bit:
#endif
#if CONFIG_TAPE_TURBO_AUTOCALIBRATE
tax
cmp IRQTMP+0
#else
cmp #$BF // threshold calculated by autocalibration routines under VICE
#endif
cmp SYNO // threshold
bcs !+
clc
ror
sta IRQTMP+0 // store half of the last measurement result for short pulse
lda #$01
sta SID_SIGVOL
lda #$06
@@ -48,6 +45,10 @@ tape_turbo_get_bit:
sec
rts
!:
clc
ror
sta IRQTMP+1 // store half of the last measurement result for long pulse
lda #$00
sta SID_SIGVOL
sta VIC_EXTCOL