Here is about the simplest circuit that will do the job...
Its the lower diagram, the upper one goes from step up/down to step/dir.
These assume logic levels, e.g. off the parallel port or a non-opto BOB. If your inputs/outputs are opto-isolated you'll need something different. Let me know if so...