My main concern is how to save the W register and then restore it.

I tried

MOVW _wsave

but did not compile.

Ioannis