Port manipulation made easy

robtillaart:
Came across this thread again today and dived into it. Came up with the following code.
As I lent my logic analyser to a friend so I could not check it yet,

You don't need a logic analyzer to test this.
Just compile it and look at the assembler output.
That will tell the full story.

--- bill