tape code size optimization

This commit is contained in:
FeralChild64 committed 2020-01-14 18:12:20 +01:00
1 parent 30238362c1
commit 8e162a3161
2 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -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
+9
View File
@@ -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