turbo tape can now adjust itself for tape motor speed
This commit is contained in:
1 parent
723a7772fa
commit
9061a8d0fc
18 files changed
+206
-62
No files matched your search
@@ -4,13 +4,9 @@
|
||||
// Tape (turbo) part of the LOAD routine
|
||||
//
|
||||
|
||||
// Based on routine by enthusi/Onslaught, found here:
|
||||
// Initially based on routine by enthusi/Onslaught, found here:
|
||||
// - https://codebase64.pokefinder.org/doku.php?id=base:turbotape_loader_source
|
||||
|
||||
|
||||
// XXX use calibration bits to improve reading
|
||||
// XXX find out how to use B0 tape timing
|
||||
// XXX put header type into (TAPE1)
|
||||
// but heavily reworked since then. Still, original authors deserve credits!
|
||||
|
||||
|
||||
#if CONFIG_TAPE_TURBO
|
||||
@@ -20,15 +16,11 @@ load_tape_turbo:
|
||||
|
||||
jsr tape_ditch_verify // only LOAD is supported, no VERIFY
|
||||
|
||||
lda #$00
|
||||
sta CIA2_TIMAHI // $DD05
|
||||
lda #$FE // timer threshold for TurboTape
|
||||
sta CIA2_TIMALO // $DD04
|
||||
|
||||
// Prepare for sound effects
|
||||
jsr tape_clean_sid
|
||||
|
||||
// Start playing
|
||||
jsr tape_common_prepare_cia
|
||||
jsr tape_ask_play
|
||||
|
||||
// FALLTROUGH
|
||||
@@ -76,7 +68,7 @@ load_tape_turbo_header_loop:
|
||||
// Handle the header
|
||||
|
||||
jsr tape_clean_sid
|
||||
jsr tape_handle_header // XXX handle non-relocatable programs - any non-0 even header type
|
||||
jsr tape_handle_header
|
||||
bcs load_tape_turbo_header // if name does not match, look for other header
|
||||
|
||||
// FALLTROUGH
|
||||
|
||||
Reference in new issue
Block a user