diff --git a/c64/kernal/tape/tape_common_prepare_cia.s b/c64/kernal/tape/tape_common_prepare_cia.s index ac141cee..d9f962f1 100644 --- a/c64/kernal/tape/tape_common_prepare_cia.s +++ b/c64/kernal/tape/tape_common_prepare_cia.s @@ -8,7 +8,7 @@ tape_common_prepare_cia: // Setup CIA #2 timers - ldx #$03 // set timer A to 4 ticks XXX consider setting to 8 + ldx #$03 // set timer A to 4 ticks stx CIA2_TIMALO // $DD04 ldx #$00 stx CIA2_TIMAHI // $DD05 diff --git a/c64/kernal/tape/tape_turbo_get_bit.s b/c64/kernal/tape/tape_turbo_get_bit.s index 31c5a82f..ccd16571 100644 --- a/c64/kernal/tape/tape_turbo_get_bit.s +++ b/c64/kernal/tape/tape_turbo_get_bit.s @@ -13,6 +13,12 @@ tape_turbo_get_bit: +#if CONFIG_TAPE_NORMAL + + jsr tape_normal_get_pulse // reuse routine from NORMAL system + +#else + lda #$10 !: bit CIA1_ICR // $DC0D @@ -21,6 +27,9 @@ tape_turbo_get_bit: ldx #%01010001 // start timer, force latch reload, count timer A underflows stx CIA2_CRB // $DD0F +#endif + + #if CONFIG_TAPE_TURBO_AUTOCALIBRATE tax cmp IRQTMP+0