Ed Todd wrote: > Write some macros, such as: > > IFBITON MACRO A > BMV1 SET A/8 > BMV2 SET A-(8*BMV1) > BTFSC BITFLAGS+BMV1,BMV2 ; do > next if bit is set > ENDM > > IFBITON TWENTIETH > will generate a BTFSC BITFLAGS+2,4 > > I find this very helpful: I don't have to remember which byte a > particular flag is in, I just need the flag name. Ed: This isn't EXACTLY the same thing, but MPASM already supports single symbols for register/bit combinations: #DEFINE TWENTIETH BITFLAGS3,3 .... BTFSC TWENTIETH -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === === Custodian of the PICLIST Fund -- For more info, see: === http://www.geocities.com/SiliconValley/2499/fund.html