Download the latest version here:
http://proemulator.sourceforge.net/
The following code is the code running in the above screenshot
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]);
}
}
wow this thing is cool, thanks for your work.
siiiiiiiiiiiiiiiiiick