Does somebody know how to read the complete status of portb on a 6F870.

So i give one command and get the status of portb.0....portb.7, like when port b.0 and b.3 are high i get the value 5