If you're using webbotlib, go look up the Servo class, otherwise:
Here's some pseudocode (works on any controller with a decent timer):
repeat every ~20 uS: {
set SERVOPIN HIGH
delay 2000uS // 2000: 100% fwd, 1000: 100% bwkd, 1500: stop, use some linear interpolation
set SERVOPIN LOW
}
You'll have to provide a little more information for any more help than this, I think. I'm assuming you mean rotate continuously in fwd or reverse directions, as if the servo's modified, its positioning feedback is gone... also, 0 = 360deg.