tape code size optimization
This commit is contained in:
1 parent
30238362c1
commit
8e162a3161
2 files changed
+10
-1
No files matched your search
@@ -8,7 +8,7 @@ tape_common_prepare_cia:
|
|||||||
|
|
||||||
// Setup CIA #2 timers
|
// 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
|
stx CIA2_TIMALO // $DD04
|
||||||
ldx #$00
|
ldx #$00
|
||||||
stx CIA2_TIMAHI // $DD05
|
stx CIA2_TIMAHI // $DD05
|
||||||
|
|||||||
@@ -13,6 +13,12 @@
|
|||||||
|
|
||||||
tape_turbo_get_bit:
|
tape_turbo_get_bit:
|
||||||
|
|
||||||
|
#if CONFIG_TAPE_NORMAL
|
||||||
|
|
||||||
|
jsr tape_normal_get_pulse // reuse routine from NORMAL system
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
lda #$10
|
lda #$10
|
||||||
!:
|
!:
|
||||||
bit CIA1_ICR // $DC0D
|
bit CIA1_ICR // $DC0D
|
||||||
@@ -21,6 +27,9 @@ tape_turbo_get_bit:
|
|||||||
ldx #%01010001 // start timer, force latch reload, count timer A underflows
|
ldx #%01010001 // start timer, force latch reload, count timer A underflows
|
||||||
stx CIA2_CRB // $DD0F
|
stx CIA2_CRB // $DD0F
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if CONFIG_TAPE_TURBO_AUTOCALIBRATE
|
#if CONFIG_TAPE_TURBO_AUTOCALIBRATE
|
||||||
tax
|
tax
|
||||||
cmp IRQTMP+0
|
cmp IRQTMP+0
|
||||||
|
|||||||
Reference in new issue
Block a user