[Carradio\VOLVO\VR200  09387839]

Size(310,460);  

Form {

    	HexDigit(Code,"Code",70,15,100,4);
    	CheckBox(ResetCounter,"Обнулить счётчик попыток",65,45);
    	
	Group("Идентификация",5,65,300,55)	  
    {
        Label(part," ",45,20); 			  
	Label(sn," ",45,35); 			  
    }
    	Group("Информация",5,120,300,40)	 
    {
        Label(message," ",0,18);		 
    }
    	Group("Описание",5,165,300,220) 	 
    {
        Label(lb1,"Code calculator for VOLVO :",0,15);
    	Label(lb2,"Model:  VR200  09387839   ",32,30);
    	Label(lb3,"Sec. Type:  CODE 4 dig",32,45);
	Label(lb4,"Manufacturen:  DELCO.",32,60);
	Label(lb5,"Partnumer:  20467841",32,75);
    	Label(lb6,"MCU:  D70F3044YGC",32,90);
	Label(lb7,"EEPROM:  9355092 = 24C04",32,105);
    	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code:     ",10,135);
    }
	Picture(Logo,"volvo.bmp",220,10,0,0);
    {
        Label(msg," ",0,395);			 
    } 
}


OnShow {
	msg.Color=0x0000FF;			 
        msg.Bold=1;				 
	msg="http://www.eeprom.lg.ua";	
        
	var1 = ((@0x70 & 0x0F) << 12) ;
	var2 = ((@0x71 & 0x0F) << 8) ;
	var3 = ((@0x72 & 0x0F) << 4) ;
	var4 = ((@0x73 & 0x0F) ) ;
	code = var1 | var2 | var3 | var4 ;
	sn =   " No.:  "+#c.@0x78+#c.@0x79+#c.@0x7a+#c.@0x7b+#c.@0x7c+#c.@0x7d+#c.@0x7e+#c.@0x7f+#c.@0x80+#c.@0x81;
    	part = " No.: "+#c.@0xc2+#c.@0xc3+#c.@0xc4+#c.@0xc5+#c.@0xc6+#c.@0xc7;
	
	ResetCounter = 0;
	if ( @0xCF = 0x00 ) { ResetCounter = 1;}
	if ( ResetCounter = 0 ) { message.Color = 0x0000FF; message.Bold = 1; message = "Обнулите счётчик попыток !!!";	ResetCounter = 1; }
    else
	{
	message.Color = 0xFF0000;
	message.Bold = 1;
	message = "Дамп ОК.  Счётчик попыток OK.";
	ResetCounter = 0;
	}
   
}

OnApply {
	if (ResetCounter = 1) { @0xCF = 0x00; } 		
	message.Color = 0xFF0000;
        message.Bold = 1;
       	message = "Счётчик попыток успешно изменён.";

}
