Hi Nick,

Here's the VirtualPort routines.
http://www.picbasic.co.uk/forum/show...2039#post22039

And here's an example for a 16-bit port.
http://www.picbasic.co.uk/forum/show...2065#post22065