SHARE
TWEET

Untitled

a guest Jun 15th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* simple loop based delay: */
  2. static void delay_loop(unsigned long loops)
  3. {
  4.   int d0;
  5.  
  6.   __asm__ __volatile__(
  7.     "\tjmp 1f\n"
  8.     ".align 16\n"
  9.     "1:\tjmp 2f\n"
  10.     ".align 16\n"
  11.     "2:\tdecl %0\n\tjns 2b"
  12.     :"=&a" (d0)
  13.     :"0" (loops));
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top