Jump to content

btfss f,7-bit_number


robinfawell
 Share

Recommended Posts

I know what btfss means. My difficulty is with the second operand  "7-bit_number". Perhaps I have complicated this.  I was thinking "any 7 bit number", originally.

If I conclude that this is referring to the 7th bit of SM_DOUT_VALUE why not just write

btfss SM_DOUT_VALUE, 7

Robin

Link to comment
Share on other sites

Well who says that bit_number is a constant? Assuming it's a variable

"btfss SM_DOUT_VALUE, 7-bit_number"

checks a different bit depending on the content of bit_number. If bit_number is 0 for instance it'll check the 7th bit, if it's 3 it'll check the 4th bit...

Link to comment
Share on other sites

That is what I thought originally.  However if you search for "7-bit_number"  in all the files that comprise sm c example v1.zip there is only one file that contains "7-bit_number" and that file is sm fast.inc and in that file there is only one instance of "7-bit_number" and that line is the one referred to in the first instance.

This seems to discount that "7-bit_number" is a variable.

Robin

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...