[Carradio\SONY\CDX-M8800]

Size(310,470);  

Form {
    	HexDigit(Code,"Code ",70,15,100,4);
	
	Group("Информация",5,40,300,40)		 
    {
        Label(message," ",0,15);			 
    }
    	Group("Описание",5,80,300,220) 		 
    {
        Label(lb1,"Code calculator for SONY :",0,15);
    	Label(lb2,"Model: CDX-M8800",32,30);
    	Label(lb3,"Sec. Type:  CODE 0000-9999",32,45);
	Label(lb4,"Manufacturen: SONY.",32,60);
	Label(lb5,"Partnumer:   ",32,75);
    	Label(lb6,"MCU: M30624MGP124GP  404A1A0 ",32,90);
	Label(lb7,"EEPROM: 24C02smd",32,105);
	Label(lb8,"Sec.loc.: EEPROM",32,120);
    	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code: ",32,135);
    }
	Picture(Logo,"sony.bmp",210,10,0,0);
	Picture(Logo1,"cdx-m8800.bmp",5,325,0,0);
    {
        Label(msg," ",0,305);				 
    } 
}

OnShow {
	msg.Color=0x0000FF;				 
        msg.Bold=1;					 
	msg="http://www.eeprom.lg.ua";	
        
	var0 = 0;
	var10 = @0x00;
	if (var10 = 0x00AA)   { var0 = 1;}
	if (var0 = 0) 
	{	
	message.Color = 0x0000FF; 
	message.Bold = 1; 
	message = "Неверный дамп !!!"; 
	Code = 0;
	}
    else
	{
	var1=((@0x30 & 0x0F) << 12);
	var2=((@0x31 & 0x0F) << 8);
	var3=((@0x32 & 0x0F) << 4);	
        var4=((@0x33 & 0x0F) ); 
	Code = var1 |var2 | var3 |var4 ;
	message.Color = 0xFF0000;
	message.Bold = 1;
	message = "Дамп OK.";
	}
}

OnApply {
	
}

