Download the latest version here:
http://proemulator.sourceforge.net/















The following code is the code running in the above screenshot


/*

Small recursive program that calculates Fibonacci numbers.

This program was originally featured in the "Embedded Systems Magazine"
April 1989

*/

#include <8051.h>
#include <stdio.h>

void putchar(char ch)
{
TI=0;
SBUF=ch;
while(!TI);
}

unsigned fib (int n)
{
if (n <= 2) return 1;
return fib(n-1) + fib(n-2);
}

unsigned results[11];

main()
{
int loop;

SCON=2; //set serial mode 0
for (loop=1; loop < 10; loop++)
{
results[loop] = fib(loop);
printf("fib(%d) = %d\n",loop,results[loop]);
}
}
Posted on 2004-04-07 09:54:56 by optimus
wow this thing is cool, thanks for your work.
Posted on 2004-04-08 03:31:18 by archphase
siiiiiiiiiiiiiiiiiick
Posted on 2005-07-14 18:42:37 by comrade