[Carradio\SKODA\MUSIC SYSTEM 402 SKZ2Z6  6Y0 035 160A]

Size(310,460);  

Form {
    	Digit(Code,"Code ",70,15,100);
    	//CheckBox(ResetCounter,"Обнулить счётчик попыток",82,45);
	//ComboBox(CodeRequest,"Запрос кода",32,80,100,"Off","On");
	
	Group("Идентификация",5,70,300,55)	  
    {
        Label(part," ",65,20); 			  
	Label(sn," ",65,35); 			 
    }
    	Group("Информация",5,130,300,50)	 
    {
        Label(message," ",0,18);		 
    }
    	Group("Описание",5,185,300,200) 	
    {
        Label(lb1,"Code calculator for SKODA :",0,15);
    	Label(lb2,"Model:  MUSIC SYSTEM 402  SKZ2Z6",32,30);
    	Label(lb3,"Sec. Type:  CODE 0000-1999",32,45);
	Label(lb4,"Manufacturen:  GRUNDIG.",32,60);
	Label(lb5,"Partnumer:  9.18393-83    6Y0 035 160A",32,75);
    	Label(lb6,"MCU:  NEC SKODA X02A ",32,90);
	Label(lb7,"EEPROM:  24C16 smd",32,105);
	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,180);
    	Label(lb10,"Enter code: ",32,135);
    }
	Picture(Logo,"skoda.bmp",210,10,0,0);
    {
        Label(msg," ",0,395);				 
    } 
}

OnShow {
	msg.Color=0x0000FF;				 
        msg.Bold=1;					 
	msg="http://www.eeprom.lg.ua";		
        
	message.Bold = 1;  
    	var10=@0x10; var11=var10 ^ 0x34; var12=@0x14;
    	if(var11 != var12) { Var10 = 0;}
	if (Var10 = 0)
    {
        message.Color = 0x0000FF;
        Message = "Неверный дамп ! ";
        Code = 0;
    }
    else
    {
	var0=0; var1=0;
        var0=@0x10; var1=@0x11;
	var15 = ((((var0>>4)^(var1>>4))^0x7)&0x0f)<<8;
	var25 = ((var0>>4)^(var0&0x0f))<<4;
	var35 = ((var0>>4)^(var0&0x0f))^(var1>>4);
	Code = var15 | var25 | var35;	
	message.Color = 0xFF0000;
    	message.Bold = 1;
    	message = "Дамп ОК. ";
	sn = "Serial No.: ";
    	part = "PART No.: ";
   }    
}

