Yep that's what I was talking about....
Now all you have to do is write a subroutine to impose those bits on the right pins...
You may also have to put in a little delay before each subroutine returns to let the motor settle... Unless you've got the world's second slowest computer you'll overrun that motor pretty easily... something like the windows Sleep(milliseconds) command might help you there.