$1802/6146/VIA1+2:   Data Direction Register B

   +----------+---------------------------------------------------+
   | Bit  x   |   1 = Pin PBx set to Output, 0 = Input            |
   +----------+---------------------------------------------------+

ROM-Reference:

 STA $1802  : $EBE1 $FF1A