[Carradio\ALPINE\1310R CD]
Size(310,380);
Form { 	HexDigit(Code,"Code ",70,15,60,4);
    	Group("Информация",5,40,300,40)	{ Label(message," ",0,17); }
    	Group("Описание",5,85,300,220)  { 
	Label(lb1,"Code calculator for ALPINE :",0,15);
    	Label(lb2,"Model:  1310R CD",32,30); 
	Label(lb3,"Sec. Type:  CODE 4 dig",32,45);
	Label(lb4,"Manufacturen: ALPINE.",32,60); 
	Label(lb5,"Partnumer:   ",32,75);
    	Label(lb6,"MCU: NEC D75P518GF  ",32,90); 
	Label(lb7,"EEPROM:   X24C04 smd ",32,105);
	Label(lb8,"Sec.loc.:  EEPROM",32,120); 
	Label(lb9,"Autor:  telik@ukrwest.net   2008",0,200);
    	Label(lb10,"Enter code:    ",5,135);    }
	Picture(Logo,"alpine.bmp",210,15,0,0);  {Label(msg," ",0,315);} }
OnShow {msg.Color=0x0000FF; msg.Bold=1; msg="http://www.eeprom.lg.ua";
        var1=((@0xfe&0x0F)<<12); var2=((@0xfe&0xF0)<<4); var3=((@0xff&0x0F)<<4); var4=((@0xff&0xF0)>>4);
	var10=0; if(@0xfe=0xFF){var10=var10+1;} if(@0xff=0xFF){var10=var10+1;}
	if(var10=2){message.Color=0x0000FF; message.Bold=1; message = "Неверный дамп !!!"; Code=0; }
	else { code=var1|var2|var3|var4; message.Color=0xFF0000; message.Bold=1; message="Дамп OK.";} }
OnApply {var10=0; if(@0xfe=0xFF){var10=var10+1;} if(@0xff=0xFF){var10=var10+1;}
	if(var10=2){message.Color=0x0000FF; message.Bold=1; message="Неверный дамп !  Запись прекращена !"; Code=0;}
	else {var0=Code; @0xfe=@0xfe&0xF0|(var0>>12&0x0F); @0xfe=@0xfe&0x0F|(var0>>4&0xF0); @0xff=@0xff&0xF0|(var0>>4&0x0F); @0xff=@0xff&0x0F|(var0<<4&0xF0);
	message.Color=0xFF0000; message.Bold=1; message="Новый код успешно изменён.";}}