initial
[fpgammix.git] / workloads / emulation / test-emulation.c
blobebf0a459bc06fa291762799ccf4f2316f83c89c9
1 #include <stdio.h>
3 long dummy;
5 void foo(long x)
7 dummy += 1729 / x;
10 void traphandler()
12 // What kind of trap, where, how to patch up?
13 mmix_printf("Bzz, trapped in ?");
16 void interrupthandler(long id)
18 /* do nothing */
21 int main()
23 long i;
24 mmix_printf("Hello, this is test emulation.\n");
26 for (i = 1; i < 10; ++i)
27 foo(i);
29 mmix_printf("And that concludes tonights programming.\n");