Check your PBP manual for SEROUT baud modes. SEROUT 0,9600 is not valid for SEROUT.

SEROUT 0, 16624 for the BS2p is 9600 baud, driven, inverted. To match this with PBP just
look up the baud mode number for 9600 baud, driven, inverted. SEROUT 0, 6 would output
serial data on RB0 at 9600 baud, driven, inverted.

If you include "modedefs.bas", then you could use SEROUT 0,N9600 which is somewhat
easier when porting code from Stamps to PBP.