improved tape system autodetection

This commit is contained in:
FeralChild64 committed 2020-01-17 17:38:37 +01:00
1 parent 854f03ef84
commit 82347a8b17
11 files changed
+112 -30

No files matched your search

+14
View File
@@ -21,6 +21,9 @@ tape_turbo_sync_header:
// Synchronize with start of sync sequence
jsr tape_turbo_sync_first
#if CONFIG_TAPE_AUTODETECT
bcs tape_turbo_sync_done
#endif
// Perform synchronization, double loop, total $C0 * $04 iterations
ldx #$C0
@@ -43,6 +46,9 @@ tape_turbo_sync_header:
tape_turbo_sync_payload:
jsr tape_turbo_sync_first
#if CONFIG_TAPE_AUTODETECT
bcs tape_turbo_sync_done // this shopuld not happen
#endif
!:
ldx #$09 // 9, 8, ...
!:
@@ -57,6 +63,14 @@ tape_turbo_sync_payload:
dex
bne !-
#if CONFIG_TAPE_AUTODETECT
clc
#endif
// FALLTROUGH
tape_turbo_sync_done:
rts