>From: Mathias Kuester > >Organization: IPTS-Kronshagen >Subject: test Bit >To: PICLIST@MITVMA.MIT.EDU > >Hello, > >i will test a bit in a variable. > >ASM-Code: > >DATZ2 equ 13 ( 0 < DATZ2 < 7 can I define this array ?) >DATB1 equ 14 > >BTFSS DATB1,DATZ2 > >the compiler output a warning (least significant...) it's ok. >when I disasemble the prg then... > >btfss 14,03 this is not ok !!! ??? > >03 this was the least significant... from 13 ? > BTFSS is BIT test file skip if set. This means you are trying to test bit 13 of an 8 bit register. The assembler decides you meant bit 3 for some reason. >How I can make this better ? With "OR" or other ? > >Mathias > > Kieran