1 /*Calculate the value of PI. Takes a long time!*/
5 *(int*)0x20000000 = ch;
9 void OS_InterruptServiceRoutine(unsigned int status)
15 void print_num(unsigned long num)
17 unsigned long digit,offset;
18 for(offset=1000;offset;offset/=10) {
25 long a=10000,b,c=56,d,e,f[57],g;
30 for(;d=0,g=c*2;c-=14,print_num(e+d/a),e=d%a)for(b=c;d+=f[b]*a,
31 f[b]=d%--g,d/=g--,--b;d*=b);