[Engine\Audi\ECU 95080]


Size(280,330); 

Form 
{
    
    Group("Login",5,10,100,50) 
    {
        Digit(Login," ",5,20,50);
    }
    
    Group("информация",5,180,270,50)
    {
         Label(msg," ",0,18);
    }
    Group("Описание",5,230,270,50) 
    {
        Label(lb4,"Калькулятор для ECU audi .",0,15);
        Label(lb5,"EEPROM 95080",0,30);
       
    }
    Picture(Picture1,"audi.bmp",150,15,0,0);
}
OnShow 
{
    Var0 = 0;
    if (@0x32 != @0x42) {Var0 = 1;}
    if (@0x33 != @0x43) {Var0 = 1;}
    if (Var0 != 0)
    {
     msg.bold = 1;
     msg.color = 0x0000FF;
     msg = "Неверный дамп!";
    }
    else
    {
    Login = (@0x32 << 8) | @0x33;
    if (@0x24 = @0x25) 
    {
    
       }
      
     
     msg.Color = 0xFF0000;
     msg.Bold = 1;
     msg = "Дамп ОК. Введите логин.";
    }
}
OnApply 
{
   Var0 = 0;
   Var3 = Login;
   if(Var3 > 0xFFFF) {Var0 = 1;}
   if(Var0 != 0)
    {
     msg.Color = 0x0000FF;
     msg.Bold = 1;
     msg = "Логин должен быть не более 65535";
    }
   else
    {
       Var4 = 0x32;
       while(Var4 !=0x40)
       {
        @Var4 = (Var3 >> 8 ) & 255;
        @Var4.mismatch = 1;
        Var4 = Var4 + 1;
        @Var4 = Var3 & 255;
        @Var4.mismatch = 1;
        Var4 = Var4 + 1;
        }
       msg.Color = 0xFF0000;
       msg.Bold = 1;
       msg = "Новый логин записан.";
     }
}