SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <reg51.h>
  2. unsigned char x, y, cos;
  3.  
  4. main()
  5. {
  6.     while(1)
  7.         for(x = 0; x <= 0xff; x++)
  8.         {
  9.             y=(x*x)>>8;      
  10.             cos=( y/12 * (1-y/30)) >> 8;
  11.             cos= ( y/2 * (0-cos)) >> 8;
  12.             P3= cos = (1-cos) >> 8;
  13.         }
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top