Simple problem in the end.

WS CON 60
LED VAR BYTE[WS]

Has to be above anything that uses it. If you don't it will compile O.K. but you will see a syntax error afterwards, and will not work.

Badger...