Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Assembler Notation

2004-02-02 by Dave VanHorn

Guys and Gals (well Gal, anyway..)

How do you folks handle defining bits, so that you can use SBRS/SBRC and 
SBR/SBR instructions in a sane manner?

I find the notation confusing, as one is set BITS in register, and the 
other is skip if BIT.

What I would like to do, is define a port with names for all the bits, and 
to use those names everywhere.

I know I can do something like SBR (1<<Latch),(1<<Select) but that's a bit 
clunky.

I'd really like to be able to define "latch" as  6 and 1<<6...

I'm hoping one of you has hit a clever solution for this.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.