In need of help with fixing code for 8 pin dot matrix printer

No, you don't see a problem in the stepMovePrint function, because there is none.

Then the while(tarstep > step) loop won't run, and instead pixel will increment, meaning tarstep will be more than step, and the loop will run.