[an error occurred while processing this directive]
|
Проверены эти кряки:
iar_lic при установке
iarunicrk перед первым запуском.
Все нормально.
1. Ура! Глюки с волатайлами пофиксили! :)
2. Дерьмо. Глюки с битфилдами остались :( Я про это:
typedef struct {
union {
struct {
unsigned char b0:1;
unsigned char b1:1;
unsigned char b2:1;
unsigned char b3:1;
unsigned char b4:1;
unsigned char b5:1;
unsigned char b6:1;
unsigned char b7:1;
};
unsigned char by;
};
} DBYTE;
volatile unsigned char myvol; //Volatile. We can also use any SFR instead, i.e. PORTA.
#pragma optimize = s 9
unsigned char CreateByte (void)
{
DBYTE db;
db.by = 0;
db.b7 = 1;
db.b0 = ((myvol&1) != 0) ? 1 : 0;
return db.by; //Result must be (128 + LSB(myval)), but it is always 128.
}
E-mail: info@telesys.ru