have you tried ANDing/ORing the bits?? to turn on bits, OR it with 1 and leave the rest with 0. to turn off bits, AND it with 0 and leave the rest with 1.
first u put userport in my previous post
then u run my programs given in my book, i explained full on that book, there is a section named getting started atleast read that one.