assume portb high bit is read-only