And why this adressation ?
#BDFD/48605 1011110111111101 10xxxx0xxx1xxx01 rd #1FFD
#BFDD/49117 1011111111011101 10xxxx1xxx0xxx01 rd #FE
#BFFD/49149 1011111111111101 10xxxx1xxx1xxx01 rd #7FFD

Better way is use identical low 8bit adress for all this ports. This eliminate collisions with kempston joystick and original KEMPSTON MOUSE (if A5=0). Low adress will always #FD (with 8bit full adressation) and port type will selected via other adress lines in high byte)