sound effect fixes for turbo tape loader
This commit is contained in:
1 parent
f80d61febd
commit
d4ba48bb3a
2 files changed
+21
-11
No files matched your search
@@ -22,6 +22,7 @@ load_tape_turbo:
|
|||||||
lda #$FE // timer threshold for TurboTape
|
lda #$FE // timer threshold for TurboTape
|
||||||
sta CIA2_TIMALO // $DD04
|
sta CIA2_TIMALO // $DD04
|
||||||
|
|
||||||
|
jsr tape_clean_sid
|
||||||
jsr tape_ask_play
|
jsr tape_ask_play
|
||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
@@ -54,6 +55,7 @@ load_tape_turbo_header_loop: // this strange loop puts metadata after
|
|||||||
cpy #$10
|
cpy #$10
|
||||||
bne load_tape_turbo_header_loop
|
bne load_tape_turbo_header_loop
|
||||||
|
|
||||||
|
jsr tape_clean_sid
|
||||||
jsr tape_handle_header
|
jsr tape_handle_header
|
||||||
bcs load_tape_turbo_header // if name does not match, look for other header
|
bcs load_tape_turbo_header // if name does not match, look for other header
|
||||||
|
|
||||||
@@ -85,12 +87,13 @@ load_tape_turbo_loop:
|
|||||||
bne load_tape_turbo_loop
|
bne load_tape_turbo_loop
|
||||||
|
|
||||||
// Get the checksum
|
// Get the checksum
|
||||||
|
|
||||||
jsr tape_turbo_get_byte
|
jsr tape_turbo_get_byte
|
||||||
tax
|
tax
|
||||||
|
|
||||||
// Verify the checksum
|
// Silence audio
|
||||||
|
jsr tape_clean_sid
|
||||||
|
|
||||||
|
// Verify the checksum
|
||||||
cpx PRTY
|
cpx PRTY
|
||||||
beq_far tape_load_success
|
beq_far tape_load_success
|
||||||
jmp tape_load_error
|
jmp tape_load_error
|
||||||
|
|||||||
@@ -75,6 +75,22 @@ tape_screen_off_motor_on:
|
|||||||
jmp tape_motor_on
|
jmp tape_motor_on
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Clear the SID settings - for sound effects during LOAD
|
||||||
|
//
|
||||||
|
|
||||||
|
tape_clean_sid:
|
||||||
|
|
||||||
|
lda #$00
|
||||||
|
ldy #$1C
|
||||||
|
!:
|
||||||
|
sta __SID_BASE, y
|
||||||
|
dey
|
||||||
|
bpl !-
|
||||||
|
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Ask user to press PLAY on tape deck,
|
// Ask user to press PLAY on tape deck,
|
||||||
// Unless user cancelled loading, blank screen and start motor
|
// Unless user cancelled loading, blank screen and start motor
|
||||||
@@ -95,15 +111,6 @@ tape_ask_play:
|
|||||||
ldx #__MSG_KERNAL_PRESS_PLAY
|
ldx #__MSG_KERNAL_PRESS_PLAY
|
||||||
jsr print_kernal_message
|
jsr print_kernal_message
|
||||||
|
|
||||||
// Clean the SID registers, we need it for sound effects
|
|
||||||
|
|
||||||
lda #$00
|
|
||||||
ldy #$1C
|
|
||||||
!:
|
|
||||||
sta __SID_BASE, y
|
|
||||||
dey
|
|
||||||
bpl !-
|
|
||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
|
|
||||||
tape_wait_play_loop:
|
tape_wait_play_loop:
|
||||||
|
|||||||
Reference in new issue
Block a user