Tail jump from ISR to stop_blink

- Saves 7 clock cycles per call vs. previous implementation
This commit is contained in:
2025-12-31 22:43:33 +01:00
parent 5d15088588
commit b3d7d19579
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -22,8 +22,7 @@
; useful for the tap tempo stuff
isr_stop_blink:
rcall stop_blink ; Turn off PB0 when TCNT0=OCF0A
reti ; Exit interrupt
rjmp stop_blink ; Turn off PB0 when TCNT0=OCF0A
main:
; To compile on AtTiny25/45 comment out the SPH part
+1 -1
View File
@@ -24,4 +24,4 @@ stop_blink:
ldi r16, (1 << OCF0A)
out TIFR, r16 ; Clear timer0 interrupt flag register
ret
reti