Problem solved.
I have reinstalled PBP 3 and set the assembler to MPASM instead of MPASM X.
Everything works ok now.

MisterT