Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement