.include "m8def.inc" .def temp1=r16 .def temp2=r17 .def temp3=r18 .def adresse=r27 .def daten=r28 ldi r25,0x00 ;Divisor highbyte ldi r26,0x0a ;Divisor Lowbyte ldi r23,0x03 ;Dividend Highbyte ldi r24,0xe8 ;Dividend Lowbyte clr temp1 ldi temp3,16 _div16_11: lsl r23 rol r24 rol temp1 rol temp2 cp temp1,r25 cpc temp2,r26 brlo _div16_22 sub temp1,r25 sbc temp2,r26 inc r23 _div16_22: dec temp3 brne _div16_11 ;Ergebnis in r23 (Highbyte) und r24 (Lowbyte) loop: rjmp loop