time_display: push stu push stu rcall binbcd pop tmp1 pop tmp2 ret binbcd: push ZH push ZL in ZH, SPH in ZL, SPL adiw ZH:ZL, 5 push r16 push r17 ld r16, Z ldi r17, -1 ;errechnet 10-Stelle in r17 _10E1: inc r17 subi r16, 10 brcc _10E1 subi r16, -10 ;errechnet 1-Stelle in r16 ST Z, r16 ST -Z, r17 pop r17 pop r16 pop ZL pop ZH ret