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).
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Bit Fields
Collapse
X
-
Bit Fields
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). JV, Have a look at the TESTB opcode. Should do the trick. Derek
Comment