Guest User

Untitled

a guest
Jul 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.91 KB | None | 0 0
  1. main(ctr){
  2.     // Until ctr is 448, we keep calling main ... recursively
  3.     if (ctr != 448) {
  4.         main(ctr + 1);
  5.     }
  6.  
  7.     // When CTR doesn't divide evenly by 64 ...
  8.     if (--ctr % 64) {
  9.  
  10.         int k = 0;
  11.  
  12.         if (ctr & 2) {
  13.             k = 1;
  14.         } else {
  15.             k = 8;
  16.         }
  17.        
  18.         // Lookup table number one ...
  19.         char * a = ">'txiZ^(~z?" - 48;
  20.  
  21.         // Where to start indexing into const char * named __TIME__
  22.         int b = 7 - (ctr / 8 % 8);
  23.  
  24.         // Set pointer to location of digit we want to read
  25.         char * d = __TIME__ + b;
  26.  
  27.  
  28.         int e = (((ctr * 2) & 8) | (ctr / 64));
  29.        
  30.         // Get the character that equates to the location specified by e
  31.         char f =  (";;;====~$::199"[e]);
  32.  
  33.         // Divide by either 1 or 8 depending on whether ctr has the second bit set
  34.         int g = (f / k);
  35.  
  36.         // Get what is left over after dividing by 8
  37.         int h = g % 8;
  38.  
  39.         // Offset into a (lookup table) by the ascii of wherever d is pointing,
  40.         // which is __TIME__ + b. Then add 1 to get the integer required. (The
  41.         // lookup table is shifted down 1, because it contains ~ and the next
  42.         // character in the ASCII table to represent would be the DEL (127
  43.         // dec), so we add 1 now...
  44.         int l = a[d[0]] + 1;
  45.  
  46.         // We shift it over according to h
  47.         int n = l >> h;
  48.  
  49.         // We check to see if the high bit is set or not
  50.         int o = n & 1;
  51.  
  52.         putchar(
  53.                 // We take 32 and or it with o, if the high bit was set, this
  54.                 // will cause the high bit to be set in 32 as well turning it
  55.                 // into 33, also known as !. 32 is a space in the ASCII table
  56.                 32 | o
  57.                );
  58.     } else {
  59.         // If CTR does divide equally by 64
  60.         //
  61.         // Print a newline
  62.         putchar(10);
  63.     }
  64. }
Add Comment
Please, Sign In to add comment