1)Why in assembler code I can't do this:
C Header file:
typedef struct tag_SomeBitfield
{
unsigned int bf:1;
} SomeBitfield;
C file:
...
SomeBitfield bfObj;
asm
{
bfset bfObj.bf
}
I should do this:
asm
{
bfset #$1,bfObj
}
2) Initialisation of structures
Why I can't initialise structure immideatly. Is will be so useful, when I have only one object.
struct OneObject
{
int a=0;
int b:1=1;
.....
}
struct OneObject Object1 - Default initialisation already defined!;
Stupid way:
struct Name
{
....
...
} Object=
{
...
Big Object! Screen is not latex!
...
}
or
struct a
{
int x;
int y;
...
}
#define init\
2,\
4,\
...
struct a b={init};
...
CodeWarrior 7.3, 56F8323