If your trying to make a delay with nops, then you have to make sure you have the get_data and put_data functions in there.. actually you dont really even need nops..
Code:
void delay(int time)
{
for (int i=0; i<time; i++)
{
GetData(); // dont remember the parameters
PutData(); // dont remember the parameters
}
}
That is completely untested but it should delay...