I am currently reading a tutorial about avr assembler programming. There is said:
Bit Manipulation cbr and sbr clear or set one multiple bit(s) in a register. These instructions only work on registers r16 to r31. They do not use single bits as an argument, but masks which can contain multiple bits:
sbr r16, (1<<5)+(1<<3) ;set bits 5 and 3 in register 16
cbr r16,0x03 ;clear bits 1 and 0 in register 16
can anybody explain me the parameters of the two instructions? why do i have to write (1<<5)+(1<<3) in order to set bit 5 and 3? i guess << is something like a bitshifting operation.