Hello, I need to do a bitmask on register.
These are the constants, and mask $24 constant ddrb $25 constant portb \ bit masks %000100 constant mSS ( PB2 ) %100000 constant mSCK ( PB5 ) I wont 1. to set the bits in ddrb with the bitmask mSS 2. to clear bits in portb with the bitmask mSCK In bitnames.frt there is a word bitmask: How can I use it to do the two actions above? This is mor as a learning to understand working with bitmask. Thanks for any help. Jan _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel