[Carradio\Mercedes\Exquisit CQ-LP1420L]

Size(280,210);

Form {
    HexDigit(Code,"Code",91,10,50,5);
    Group("",5,50,265,38) {
        Label(message,"",25,13);
    }
    Group("Description",5,90,265,50) {
        Label(msg1,"Code calculator for carradio",70,15);
        Label(msg2,"Mercedes Exquisit CQ-LP1420L",60,30);
    }
}

OnShow {
    
    Var0 = (@0x00 << 8) | @0x01;
    if(Var0 != 0xAAAA)
    {
        message = "                          Wrong dump !";
    }
    else
    {
        message = "                           Dump OK.";
        Var0 = (@0x02 << 8) | @0x03;
        Var1 = Var0 & 0x0007;
        Var1 = Var1 | ((Var0 & 0x0038) << 1);
        Var1 = Var1 | ((Var0 & 0x01C0) << 2);
        Var1 = Var1 | ((Var0 & 0x0E00) << 3);
        Var1 = Var1 | ((Var0 & 0x7000) << 4);
        Code = Var1;
    }
}
