This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define X(a,b) a##b | |
| #define x(a,b) X(a,b) | |
| #define s(a) #a | |
| x ( i , x ( n , t | |
| ) ) x ( m , x ( a | |
| , x ( i , n ) ) ) | |
| ( ) { x ( p , x ( | |
| r , x ( i , x ( n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <sys/time.h> | |
| static int64_t get_time_usec() { | |
| struct timeval time; | |
| gettimeofday(&time, NULL); | |
| return (int64_t)time.tv_sec * 1000000 + time.tv_usec; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <time.h> | |
| #include <stdio.h> | |
| int main( | |
| ){int x=- 44, | |
| a=2551443,b=- x, | |
| y=2-b,z=(time(0 ) | |
| -592531)%a*512/a ; | |
| for(;y<=b;putchar ( | |
| ++x>=a?x=-b,y+=4, 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # include <stdlib.h> | |
| # include <stdio.h> | |
| #include <math.h> | |
| #include <time.h> | |
| /*moomin*/ | |
| #define F printf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char main | |
| [/*x86*/] | |
| __attribute__ | |
| ((section(".text")) | |
| )="WTYH)9Zj8_j7H)9]R" | |
| "H)9^\350\0\0\0\0H)1^R" | |
| "H))Z8<2u\366j<)9Xj9" | |
| ")9j9VY)<$[S_H\xbd^[" | |
| "H$@\xcd\200-XP\xf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| P,o,S,i,t,I,v,E; | |
| main(){v?(o+=o)?i+=i,i++:( | |
| o+=t,S?E? P?i+=v:(o | |
| +=i,o+= o,o+=o) | |
| ,o++:( (I?P?o | |
| +=i:o ,o+=o | |
| ,o+=t ,o+=o | |
| ,o+=o :(o+= | |
| o,o+= t,P?++ o,o+=o ,o++, | |
| o+=o: (o+=o,++ o,o+=o,o ++))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| i,x=1,y, z= 1,a;main (){((a<1 | |
| )& (x >y )? | |
| ++ i- 2< 99 | |
| ?a=x=i %3 ?i %5 | |
| ?z *= i+ 1> | |
| z? 10 :1 :4 | |
| :0 ,y =i%5?i%3 ?0:4:8,1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| static int is_mem(const char *s, int n) { | |
| int a, i; | |
| for (i = 0; i < n; i++) { | |
| a = s[i]; | |
| if (a == '[' || a == ']') return 1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef SAFESYS_H | |
| #define SAFESYS_H | |
| #include <stdlib.h> | |
| #include <stdarg.h> | |
| #ifndef SAFESYS_NOMEM | |
| #include <errno.h> | |
| #define SAFESYS_NOMEM ENOMEM | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // looks correct but not tested at all | |
| // temp | |
| unsigned i, t, x; | |
| // mcs-4 state | |
| unsigned short pc, stack[3]; | |
| unsigned char r[16], a, c; | |
| unsigned char test, ram, src, wpm_idx, sp; | |
| unsigned char rom_out[16], rom_in[16], ram_out[4]; | |
| // 8 banks x 4 chips x 4 registers x (16 + 4) chars x 4 bits |
OlderNewer