EECS 203 Mailing List
BTFSS command question


BTFSS command question

From: Joseph Teno <j-teno_at_avoiding.spam>
Date: Sun May 25 2008 - 20:49:41 CDT

Hi all.
Right now, my code for checking if the input = code ends with

subwf MEM_REG
btfss MEM_REG, 0
   goto LIGHTSHOW

I'm pretty sure this just checks to see if the leftmost bit of MEM_REG is
set, but I want to check to see if any of them are set. Do you have any
suggestions of how could I go about doing this? Maybe something like

btfsc MEM_REG, 0
  return
btfsc MEM_REG,1
 return
...(bits 2-7)
return
goto LIGHTSHOW

for all the bits, but I'm betting there is a quicker way of doing this.

Thanks.
Received on Sun May 25 20:49:41 2008

This archive was generated by hypermail 2.1.8 : Sat Aug 23 2008 - 21:08:11 CDT