From: Jan K. <jan...@ic...> - 2019-06-17 18:13:11
|
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 |