> Van: Sebasti‡n Dols > Aan: PICLIST@MITVMA.MIT.EDU > Onderwerp: 'btfss(c) fileA, fileB' or 'do case' in mpasm > Datum: maandag 17 mei 1999 16:52 > > Hello PIClisters Hello Sebasti‡n, > *the first is: i am trying to resolve a code trouble with a > 'btfss(c) file, bit' > statement, but I need to reference the bit via the contents of other file > (contents will be always 0-8), in order to achieve something like a > 'btfss(c) fileA,fileB' > The assembler do not show any complaint about it except with a 'less > significant bits used', but do not simulate well...Is this statement > codeable in any way or simply is bad coded? It's badly coded (sorry :-). The second argument ("FileB") is taken as a Constant. And because the File-adress (_not_ contents !) is not within the range 0 thru 7 it display's the warning about the "less significant bits" .. > **the second is: If the prior statement is not possible, then what is, in > your opinion, the (as usual) more clock-efective way to program a 'C-like' > do-Case statement (without buying a C compiler, of course )? Convert the contents of FileB to a Bit-mask, than AND them with the contents of FileA ... Solutions where discussed in the thread "Using a variable to clear a bit" about 2 weeks ago. Greetz, Rudy Wieser