View Single Post
  #5   Spotlight this post!  
Unread 25-11-2007, 20:50
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: in case of EMERGENCY, is a loop of NOPs an option?

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...