There is a ' symbol after the wait that I think should go away. Buffer never gets filled.

Code:
SERIN2 portb.1, 84, [WAIT($0A)] ' STR buf\12]	' wait for hdr + ID
Ioannis