Hi, i work on a windows 10 development platform and I will use the portable
stdint and all and all I need. Mr. Ian Lance Taylor (Google) are not possible
for my company.
Renaud Lelièvre
Montréal
#include <stdio.h>
#include <stdlib.h>
struct microFields {
unsigned int addr:28;
unsigned int cond:2;
unsigned int wr:1;
unsigned int rd:1;
unsigned int mar:1;
unsigned int alu:3;
unsigned int b:20;
unsigned int a:20;
unsigned int c:20;
};
union micro {
unsigned int microCode;
struct microFields code;
};
int main (void) {
int typeAlu=0x11FE00;
union micro test;
test.microCode = 0x0001c000;
typeAlu = test.code.alu;
printf("%d \n", typeAlu);
return EXIT_SUCCESS;
}