The code is:
MOV A,#66H ;LOAD STEP SEQUENCE
BACK: MOV P1,A ;ISSUE SEQUENCE TO MOTOR
RR A ;ROTATE RIGHT CLOCKWISE
ACALL DELAY ;WAIT
SJMP BACK ;KEEP GOING
DELAY
MOV R2,#100
H1: MOV R3,#255
H2: DJNZ R3,H2
DJNZ R2,H1
RET
..................................................................
Connect p1.0,p1.1,p1.2,p1.3 to the bases of four NPN transistors with Ice rating greater than the per phase current rating of the stepper motor. If the motor is 6 wire, short the two center taps & connect them to the Vcc. MAke sure that the controller is connected to the bases with suitable curent limiting resistors, allowing just enough current to drive the transistor into saturation. Ground the emitters of all the transistors, & connect the remaining four wires to each collector. Since u dont want to go into complex logic, just keep switching the four wires from collector to collector until the motor runs