#include <8052.h>

static unsigned char ms_tenth;
static unsigned char servo1_target;
static unsigned char servo2_target;
static unsigned char servo3_target;

void Timer0_ISR (void) interrupt 1 {

    P1_2 = (ms_tenth < servo1_target);
    P1_3 = (ms_tenth < servo2_target);
    P1_4 = (ms_tenth < servo3_target);

    if (++ms_tenth == 180)
        ms_tenth = 0;

    TF0 = 0;
}

void main(void){}