IEC code size optimizations

This commit is contained in:
FeralChild64 committed 2019-12-26 16:24:13 +01:00
1 parent f5eef54df6
commit 0cafc8defb
5 files changed
+34 -21

No files matched your search

+6 -2
View File
@@ -1,4 +1,8 @@
//
// Note: damages .X
//
#if CONFIG_IEC
@@ -14,8 +18,8 @@ iec_wait60us:
// Waste cycles in a loop
ldy #$0A // 2 cycles
!: dey // 2 cycles * 10
ldx #$0A // 2 cycles
!: dex // 2 cycles * 10
bpl !- // 3 cycles * 9 + 2 cycles
rts // 6 cycles
+1 -1
View File
@@ -93,7 +93,7 @@ load_iec:
// Display start address
jsr lvs_display_loading_verifying
#if CONFIG_IEC_JIFFYDOS && !CONFIG_MEMORY_MODEL_60K
#if (CONFIG_IEC_JIFFYDOS || CONFIG_IEC_DOLPHINDOS) && !CONFIG_MEMORY_MODEL_60K
// If feasible, use JiffyDOS optimized LOAD loop