Skip to main content

Thread: confused abt this code.


ddrb |= (1 << 0)



can 1 me out this.im newbie coding.

http://h30097.www3.hp.com/docs/base_...e/docu_059.htm

performs bitwise or (1 in argument sets 1 in result) of ddrb , 1 ( 1 shifted left 0 bits still 1) , assigns result ddrb

code:
00101010 11000100 --------- or 11101110  3 << 2 3: 00000011    00001100 = 12
left-shifting pretty equivalent multiplying 2^n (there overflows whatever)

in general returns ddrb if ddrb odd , ddrb+1 if ddrb


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] confused abt this code.


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account