home *** CD-ROM | disk | FTP | other *** search
- #include <stdlib.h>
- #include <stdio.h>
-
- #define TEST 0
-
- extern void emu_install();
- extern void emu_printall();
-
- #if TEST
-
- double a=10, b=16;
- float f=3.3;
- int i=3;
-
- void test()
- {
- asm("fldl _b");
- asm("fldl _a");
- emu_printall();
- asm("fdivr %st,%st(1)");
- emu_printall();
- }
-
- #endif
-
- main()
- {
- #if TEST
- test();
- #endif
- emu_install();
- #if TEST
- test();
- #endif
- }
-