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
left-shifting pretty equivalent multiplying 2^n (there overflows whatever)code:00101010 11000100 --------- or 11101110 3 << 2 3: 00000011 00001100 = 12
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
Post a Comment