PDA

View Full Version : Bit Fields



Guest.Visitor
01-01-1995, 02:00 AM
I'm trying to use the DSM Query API and some of the returned data is spread over bit ranges in a 5-byte string. Does anyone have some handy RPGIV code for extracting these bit ranges and returning as an integer value? (I know this would be a snip in C, but I don't have access to the C compiler).

Guest.Visitor
09-15-1998, 04:55 PM
<font color="#0000CC"> On Monday, September 14, 1998, 11:45 PM, J V Thompson wrote: I'm trying to use the DSM Query API and some of the returned data is spread over bit ranges in a 5-byte string. Does anyone have some handy RPGIV code for extracting these bit ranges and returning as an integer value? (I know this would be a snip in C, but I don't have access to the C compiler). </font> JV, Have a look at the TESTB opcode. Should do the trick. Derek