IEC code size optimizations
This commit is contained in:
1 parent
f5eef54df6
commit
0cafc8defb
5 files changed
+34
-21
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user