Sometimes you can just brute force it
this complies to less then 1/3 the size

Code:
PINA=1
PINB=1
PINC=1
PIND=1
PINE=1
BRANCH MODE,[M0,M1,M2,M3,M4,M5]
M0:
GOTO DONE
M1:
PINA=0
GOTO DONE
M2:
PINB=0
GOTO DONE
M3:
PINC=0
GOTO DONE
M4:
PIND=0
GOTO DONE
M5:
PINE=0
DONE: