tape code cleanup, added impulse detection for normal mode
This commit is contained in:
1 parent
d5d3a1c3b2
commit
f1e5a4cb3e
6 files changed
+219
-91
No files matched your search
@@ -0,0 +1,42 @@
|
||||
|
||||
//
|
||||
// Tape (turbo) helper routine - bit reading
|
||||
//
|
||||
|
||||
// Based on routine by enthusi/Onslaught, found here:
|
||||
// - https://codebase64.pokefinder.org/doku.php?id=base:turbotape_loader_source
|
||||
|
||||
|
||||
#if CONFIG_TAPE_TURBO
|
||||
|
||||
|
||||
tape_turbo_get_bit:
|
||||
|
||||
lda #$10
|
||||
!:
|
||||
bit CIA1_ICR // $DC0D
|
||||
beq !- // busy loop to detect signal
|
||||
lda CIA2_ICR // $DD0D
|
||||
pha
|
||||
lda #%00011001 // start timer, one-shot, force latch reload
|
||||
sta CIA2_CRA // $DD0E
|
||||
pla
|
||||
|
||||
pha // audio/video effects
|
||||
asl
|
||||
sta SID_SIGVOL
|
||||
beq !+
|
||||
#if CONFIG_COLORS_BRAND && CONFIG_BRAND_ULTIMATE_64
|
||||
lda #$0B
|
||||
#else
|
||||
lda #$06
|
||||
#endif
|
||||
!:
|
||||
sta VIC_EXTCOL
|
||||
pla
|
||||
|
||||
lsr
|
||||
rts
|
||||
|
||||
|
||||
#endif // CONFIG_TAPE_TURBO
|
||||
Reference in new issue
Block a user