a=128
b=a
a=a and &B11110000
b=b and &B00001111

porta=a
port a = porta or b

dann gibts da noch den befehl "shift"