Tim N9PUZ wrote: > The only way I'm aware of is to write a function that takes variable > values as parameters and then use a switch statement or a series of > if...then clauses to select the proper hard coded statements. Kind of > ugly but perhaps the only method. In a way that's what you'd have to do in assembler also, since the "bit" fields in instructions are always constants. So, short of doing multiple shifts on the register, using a table of statements is the only way that I know of doing that. Of course, you could always OR the register with (1<