work towards tape speed calibration in normal system load

This commit is contained in:
FeralChild64 committed 2020-01-19 20:59:59 +01:00
1 parent 585d37c899
commit 37c86a33d1
17 files changed
+325 -187

No files matched your search

+12 -4
View File
@@ -16,17 +16,20 @@ tape_normal_get_bit:
// Fetch the first pulse
jsr tape_normal_get_pulse
jsr tape_common_get_pulse
bcc tape_normal_get_bit_1
// First impulse was short, second should be medium
jsr tape_normal_get_pulse
jsr tape_normal_calibrate_after_S
jsr tape_common_get_pulse
bcs tape_normal_get_bit_error
jsr tape_normal_calibrate_after_M
// We have a bit '0'
// Carry flag already clear
lda #$00
// FALLTROUGH
@@ -34,6 +37,7 @@ tape_normal_get_bit:
tape_normal_get_bit_done:
sta VIC_EXTCOL
clc
rts
@@ -41,9 +45,13 @@ tape_normal_get_bit_1:
// First impulse was medium, second should be short
jsr tape_normal_get_pulse
jsr tape_normal_calibrate_after_M
jsr tape_common_get_pulse
bcc tape_normal_get_bit_error
jsr tape_normal_calibrate_after_S
// We have a bit '1'
clc