I want to make a code about accurate delay library in ATmega8 with winAVR as the compiler, do you have any idea to convert the code below to assembly? I have no idea to convert the code, because I don't understand assembly.
this is the code.
static __inline__ void __variable_delay_cycles(unsigned long __count)
{
    if (__count>65535)
    {
        __count=(__count-13)/6;
        DelayCyclesUL(__count);
    }
    else
    {
        if (!__count)
            return;
        if (__count<10)
            __count=1;
        else 
            __count=(__count-6)/4;
        DelayCyclesUI(__count);
    }
}
DelayCyclesUI and DelayCyclesUL are written in assembly code. Thanks.
 
     
     
    