g code interpreter for 4 wire stepper motors

Hi
I have been looking into the reprap gcode interpreter as a way of sending g code to the arduino to control 2 stepper motors. The code is set up for motor controllers using the step dir method. I have 2 motors connected to 2 l239D stepper controllers using 8 pins on the arduino to control them.

Has anyone modified the g code firmware to control the steppers in this way? Using 4 pins for each motor rather than 2 (step dir)

There's an example for that:

From Files>Examples>Stepper>stepper_oneStepAtATime

#include <Stepper.h>

const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8,9,10,11);