example code using PBASIC (BS2)

SEROUT 4,84,[$80,0,0,drive] 'motor 0
PAUSE 20
SEROUT 4,84,[$80,0,3,drive] 'motor 1
PAUSE 20

how to convert it to PICBASIC