Hello everybody, Do you know if Code Warrior allow us to use assembler code in C code. I put "Nop" in my program and i have an error during the compilation. I think I have to put something before and after "Nop" if I want that CodeWarrior understand the nop instruction. Best regards "stickben" <[EMAIL PROTECTED]> le 19/08/2002 20:54:19 Pour : "Christophe Gouwy" <[EMAIL PROTECTED]> cc : Objet : Re: I want to do a delay of 1,78 mS on my palm You might be able to do it in assembly better than in C. First figure out how fast your processor is. There is an instruction in the set called the NOP instruction. It basically does nothing, and it takes one cycle. From there you can approximate how many NOPs there are in 1,78 mS. Youll probably have to play around if you need alot of precision. There are other considerations such as how long it takes to execute other instructions in the loop or to load the fuction. Some compilers allow you to directly inline the assembly with the C code. Hope that helps, Ben --- In [EMAIL PROTECTED], "Christophe Gouwy" <[EMAIL PROTECTED]> wrote: > Hello > > I need a delay of 1,78 mS in my program. And I don't konw how I can do it. > I know that we can use the SysTicksPerSecond function , but it is used for > the milliseconds, not for the microseconds. > > Is there someone who can help me please? > > Best regards > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
