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

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
btfsc MEM_REG,1
...(bits 2-7)

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

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