Greetings,
I am processing data which has what they call a "bit-field" with a range of 0x0000 to 0x7F83. I am using Fortran to read it in as an integer (16-bit). I need to look at each of the bit flag dependencies:
bit 9 - Is it a 0 or 1
bit 0 - Is it a 0 or 1
bit 1 - Is it a 0 or 1
bit 7 - Is it a 0 or 1
bit 8 - Is it a 0 or 1
bit 10 - Is it a 0 or 1
bit 11 - Is it a 0 or 1
How do I do this in Fortran90? Do I have to convert it from integer to something? I am lost. Any help would be appreciated.
Thanks.
I am processing data which has what they call a "bit-field" with a range of 0x0000 to 0x7F83. I am using Fortran to read it in as an integer (16-bit). I need to look at each of the bit flag dependencies:
bit 9 - Is it a 0 or 1
bit 0 - Is it a 0 or 1
bit 1 - Is it a 0 or 1
bit 7 - Is it a 0 or 1
bit 8 - Is it a 0 or 1
bit 10 - Is it a 0 or 1
bit 11 - Is it a 0 or 1
How do I do this in Fortran90? Do I have to convert it from integer to something? I am lost. Any help would be appreciated.
Thanks.