From 74bdbd793042dc4be918b11eea2f4a6efd323dea Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Tue, 25 Aug 2020 16:51:34 +0200 Subject: [PATCH] removed dangerous tape reading optimization --- src/kernal/tape/tape_normal_get_data_2.s | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/kernal/tape/tape_normal_get_data_2.s b/src/kernal/tape/tape_normal_get_data_2.s index 16b5f166..2b88c12c 100644 --- a/src/kernal/tape/tape_normal_get_data_2.s +++ b/src/kernal/tape/tape_normal_get_data_2.s @@ -12,10 +12,8 @@ tape_normal_get_data_2: - // First check if there is a need to read anything - - lda PTR1 - beq tape_normal_get_data_2_log_checksum + // NOTE: Always read all the bytes fro second copy, to taht we stop + // at the moment when it is safe to start recording! // Read sync of the block @@ -28,11 +26,6 @@ tape_normal_get_data_2: tape_normal_get_data_2_loop: - // Check if there are missing bytes to read - lda PTR1 - cmp PTR2 - beq tape_normal_get_data_2_log_checksum // branch if no more errors to correct - // Read missing bytes jsr tape_normal_get_byte